<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Accessing MySQL BLOB columns using Visual Basic 6</title>
	<atom:link href="http://www.vbmysql.com/articles/vb6-mysql/accessing-mysql-blob-columns-using-visual-basic-6/feed" rel="self" type="application/rss+xml" />
	<link>http://www.vbmysql.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Fri, 07 Jan 2011 12:23:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: arief rahman d</title>
		<link>http://www.vbmysql.com/articles/vb6-mysql/accessing-mysql-blob-columns-using-visual-basic-6#comment-1019</link>
		<dc:creator>arief rahman d</dc:creator>
		<pubDate>Fri, 05 Nov 2010 12:25:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.vbmysql.com/articles/vb6-mysql/accessing-mysql-blob-columns-using-visual-basic-6/#comment-1019</guid>
		<description>file not update in my database</description>
		<content:encoded><![CDATA[<p>file not update in my database</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arief rahman d</title>
		<link>http://www.vbmysql.com/articles/vb6-mysql/accessing-mysql-blob-columns-using-visual-basic-6#comment-1018</link>
		<dc:creator>arief rahman d</dc:creator>
		<pubDate>Fri, 05 Nov 2010 12:23:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.vbmysql.com/articles/vb6-mysql/accessing-mysql-blob-columns-using-visual-basic-6/#comment-1018</guid>
		<description>way in vista
not work
Set file = New ADODB.Stream
    file.Type = adTypeBinary
    file.Open
    file.LoadFromFile (Text6.Text)
RSSOAL!flash = file.Read
        RSSOAL.Update</description>
		<content:encoded><![CDATA[<p>way in vista<br />
not work<br />
Set file = New ADODB.Stream<br />
    file.Type = adTypeBinary<br />
    file.Open<br />
    file.LoadFromFile (Text6.Text)<br />
RSSOAL!flash = file.Read<br />
        RSSOAL.Update</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ready To Assemble Kitchen Cabinets</title>
		<link>http://www.vbmysql.com/articles/vb6-mysql/accessing-mysql-blob-columns-using-visual-basic-6#comment-1017</link>
		<dc:creator>Ready To Assemble Kitchen Cabinets</dc:creator>
		<pubDate>Fri, 20 Aug 2010 09:13:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.vbmysql.com/articles/vb6-mysql/accessing-mysql-blob-columns-using-visual-basic-6/#comment-1017</guid>
		<description>Really excellent desgin of your web page. It&#039;s individual and compares for your posts. Don´t give up and make your own factor!</description>
		<content:encoded><![CDATA[<p>Really excellent desgin of your web page. It&#8217;s individual and compares for your posts. Don´t give up and make your own factor!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dinesh</title>
		<link>http://www.vbmysql.com/articles/vb6-mysql/accessing-mysql-blob-columns-using-visual-basic-6#comment-1016</link>
		<dc:creator>Dinesh</dc:creator>
		<pubDate>Fri, 09 Jul 2010 09:22:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.vbmysql.com/articles/vb6-mysql/accessing-mysql-blob-columns-using-visual-basic-6/#comment-1016</guid>
		<description>I am using VB6 to insert image into mysql database when i clik my submit button everything is happening without any error but the image which i have declared as mediumblob is not inserting into the database Please help</description>
		<content:encoded><![CDATA[<p>I am using VB6 to insert image into mysql database when i clik my submit button everything is happening without any error but the image which i have declared as mediumblob is not inserting into the database Please help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake Knepel</title>
		<link>http://www.vbmysql.com/articles/vb6-mysql/accessing-mysql-blob-columns-using-visual-basic-6#comment-1015</link>
		<dc:creator>Jake Knepel</dc:creator>
		<pubDate>Tue, 08 Jun 2010 14:10:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.vbmysql.com/articles/vb6-mysql/accessing-mysql-blob-columns-using-visual-basic-6/#comment-1015</guid>
		<description>This is a very important post, I was looking for this knowledge. Just so you know I found your blog when I was searching for blogs like mine, so please check out my site sometime and leave me a comment to let me know what you think.</description>
		<content:encoded><![CDATA[<p>This is a very important post, I was looking for this knowledge. Just so you know I found your blog when I was searching for blogs like mine, so please check out my site sometime and leave me a comment to let me know what you think.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicanor</title>
		<link>http://www.vbmysql.com/articles/vb6-mysql/accessing-mysql-blob-columns-using-visual-basic-6#comment-1014</link>
		<dc:creator>Nicanor</dc:creator>
		<pubDate>Thu, 03 Jun 2010 00:44:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.vbmysql.com/articles/vb6-mysql/accessing-mysql-blob-columns-using-visual-basic-6/#comment-1014</guid>
		<description>Hi! Everyone..I need help how to retrieve fast my table with LONGBLOB field, the table has a thousands of images.

Here is my code and it seems that the recordset took a while before proceeding with the next command.



        With rdoIMG
            .Open &quot;SELECT * FROM CHEQUES&quot;, cnn, adOpenStatic, adLockOptimistic
        End With


I tried also this one but still took a while to process...

    Dim cnMySql As New rdoConnection
    Dim rdoQry  As New rdoQuery
    Dim rdoRS   As rdoResultset


   With rdoQry
        .Name = &quot;test&quot;
        .SQL = &quot;select * from CHEQUES&quot;
        .RowsetSize = 1
        Set .ActiveConnection = cnMySql
        Set rdoRS = .OpenResultset(rdOpenKeyset, rdConcurRowVer)

    End With

Appreciate much your kind support...</description>
		<content:encoded><![CDATA[<p>Hi! Everyone..I need help how to retrieve fast my table with LONGBLOB field, the table has a thousands of images.</p>
<p>Here is my code and it seems that the recordset took a while before proceeding with the next command.</p>
<p>        With rdoIMG<br />
            .Open &#8220;SELECT * FROM CHEQUES&#8221;, cnn, adOpenStatic, adLockOptimistic<br />
        End With</p>
<p>I tried also this one but still took a while to process&#8230;</p>
<p>    Dim cnMySql As New rdoConnection<br />
    Dim rdoQry  As New rdoQuery<br />
    Dim rdoRS   As rdoResultset</p>
<p>   With rdoQry<br />
        .Name = &#8220;test&#8221;<br />
        .SQL = &#8220;select * from CHEQUES&#8221;<br />
        .RowsetSize = 1<br />
        Set .ActiveConnection = cnMySql<br />
        Set rdoRS = .OpenResultset(rdOpenKeyset, rdConcurRowVer)</p>
<p>    End With</p>
<p>Appreciate much your kind support&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: luis</title>
		<link>http://www.vbmysql.com/articles/vb6-mysql/accessing-mysql-blob-columns-using-visual-basic-6#comment-1013</link>
		<dc:creator>luis</dc:creator>
		<pubDate>Sun, 25 Apr 2010 16:21:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.vbmysql.com/articles/vb6-mysql/accessing-mysql-blob-columns-using-visual-basic-6/#comment-1013</guid>
		<description>muy bien todo pero yo necesito conectar visual basic con mysql 5.0 tengo el conector odbc 3.5,,,,  no se como conectar con la base de datos ni donde colocar la programacion ayuda por fa. y como buscar modifiocar agregar y eliminar</description>
		<content:encoded><![CDATA[<p>muy bien todo pero yo necesito conectar visual basic con mysql 5.0 tengo el conector odbc 3.5,,,,  no se como conectar con la base de datos ni donde colocar la programacion ayuda por fa. y como buscar modifiocar agregar y eliminar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marexblue</title>
		<link>http://www.vbmysql.com/articles/vb6-mysql/accessing-mysql-blob-columns-using-visual-basic-6#comment-1012</link>
		<dc:creator>marexblue</dc:creator>
		<pubDate>Thu, 15 Oct 2009 05:43:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.vbmysql.com/articles/vb6-mysql/accessing-mysql-blob-columns-using-visual-basic-6/#comment-1012</guid>
		<description>i forgot this one, declaration of variables...

Dim DataFile As Integer, Fl As Long, Chunks As Integer
Dim Fragment As Integer, Chunk() As Byte, i As Integer, Filename As String

Private Const ChunkSize As Integer = 16384
Private Const conChunkSize = 100</description>
		<content:encoded><![CDATA[<p>i forgot this one, declaration of variables&#8230;</p>
<p>Dim DataFile As Integer, Fl As Long, Chunks As Integer<br />
Dim Fragment As Integer, Chunk() As Byte, i As Integer, Filename As String</p>
<p>Private Const ChunkSize As Integer = 16384<br />
Private Const conChunkSize = 100</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marexblue</title>
		<link>http://www.vbmysql.com/articles/vb6-mysql/accessing-mysql-blob-columns-using-visual-basic-6#comment-1011</link>
		<dc:creator>marexblue</dc:creator>
		<pubDate>Thu, 15 Oct 2009 05:40:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.vbmysql.com/articles/vb6-mysql/accessing-mysql-blob-columns-using-visual-basic-6/#comment-1011</guid>
		<description>@jimnast

glad i came back here, well about your concern, there is always a solution for that. you must have a source code that will read the blob field and will convert the actual datafile to temporary file which can be loaded automatically using this command:
               If ShowPic(rsFill!photo, Image1) = False Then
                      Set Image1.Picture = LoadPicture(App.Path &amp; &quot;\pics\temp.jpg&quot;)
               End If

if the function ShowPic returns true it means that the picture from the blob field (photo) was already loaded to Image1, which is either an image or picturebox control. And if it returns false then load a picture from directory as temporary.

Well, try to look for this source as i&#039;m using this in my SQL server DB. Consider this one if it may help you.

Public Function ShowPic(ByRef fieldname As Field, ByRef cImage As Object) As Boolean
    On Error GoTo Out
    ShowPic = False
    DataFile = 1
    Open &quot;pictemp&quot; For Binary Access Write As DataFile
    Fl = fieldname.ActualSize &#039; Length of data in file
    If Fl = 0 Then Close DataFile: Exit Function
    Chunks = Fl \ ChunkSize
    Fragment = Fl Mod ChunkSize
    ReDim Chunk(Fragment)
    Chunk() = fieldname.GetChunk(Fragment)
    Put DataFile, , Chunk()
    For i = 1 To Chunks
        ReDim Buffer(ChunkSize)
        Chunk() = fieldname.GetChunk(ChunkSize)
        Put DataFile, , Chunk()
    Next i
    Close DataFile
    Filename = &quot;pictemp&quot;
    &#039;ShowPic = LoadPicture(FileName)
    cImage.Picture = LoadPicture(Filename)
    ShowPic = True
    Exit Function

Out:
    ShowPic = False
End Function</description>
		<content:encoded><![CDATA[<p>@jimnast</p>
<p>glad i came back here, well about your concern, there is always a solution for that. you must have a source code that will read the blob field and will convert the actual datafile to temporary file which can be loaded automatically using this command:<br />
               If ShowPic(rsFill!photo, Image1) = False Then<br />
                      Set Image1.Picture = LoadPicture(App.Path &amp; &#8220;\pics\temp.jpg&#8221;)<br />
               End If</p>
<p>if the function ShowPic returns true it means that the picture from the blob field (photo) was already loaded to Image1, which is either an image or picturebox control. And if it returns false then load a picture from directory as temporary.</p>
<p>Well, try to look for this source as i&#8217;m using this in my SQL server DB. Consider this one if it may help you.</p>
<p>Public Function ShowPic(ByRef fieldname As Field, ByRef cImage As Object) As Boolean<br />
    On Error GoTo Out<br />
    ShowPic = False<br />
    DataFile = 1<br />
    Open &#8220;pictemp&#8221; For Binary Access Write As DataFile<br />
    Fl = fieldname.ActualSize &#8216; Length of data in file<br />
    If Fl = 0 Then Close DataFile: Exit Function<br />
    Chunks = Fl \ ChunkSize<br />
    Fragment = Fl Mod ChunkSize<br />
    ReDim Chunk(Fragment)<br />
    Chunk() = fieldname.GetChunk(Fragment)<br />
    Put DataFile, , Chunk()<br />
    For i = 1 To Chunks<br />
        ReDim Buffer(ChunkSize)<br />
        Chunk() = fieldname.GetChunk(ChunkSize)<br />
        Put DataFile, , Chunk()<br />
    Next i<br />
    Close DataFile<br />
    Filename = &#8220;pictemp&#8221;<br />
    &#8216;ShowPic = LoadPicture(FileName)<br />
    cImage.Picture = LoadPicture(Filename)<br />
    ShowPic = True<br />
    Exit Function</p>
<p>Out:<br />
    ShowPic = False<br />
End Function</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zheirk</title>
		<link>http://www.vbmysql.com/articles/vb6-mysql/accessing-mysql-blob-columns-using-visual-basic-6#comment-1010</link>
		<dc:creator>zheirk</dc:creator>
		<pubDate>Wed, 02 Sep 2009 03:59:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.vbmysql.com/articles/vb6-mysql/accessing-mysql-blob-columns-using-visual-basic-6/#comment-1010</guid>
		<description>&quot;Hello evryone. Is anybody know how to view/retrieve image from MySQL (blob) into picture box in visual basic 6? Because the idea given here is only to save to c:\filename.gif. I want it directly to picture box without saving/retrieving it to c:\ directory. Just to view it only to picture box..

Any solution is very much appreciated.
Thanks in advance…

More powers to everybody.&quot;
-------------------------------------------------
Loading Picture to a Picture Box

Picture1.Picture = LoadPicture (FileName)</description>
		<content:encoded><![CDATA[<p>&#8220;Hello evryone. Is anybody know how to view/retrieve image from MySQL (blob) into picture box in visual basic 6? Because the idea given here is only to save to c:\filename.gif. I want it directly to picture box without saving/retrieving it to c:\ directory. Just to view it only to picture box..</p>
<p>Any solution is very much appreciated.<br />
Thanks in advance…</p>
<p>More powers to everybody.&#8221;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Loading Picture to a Picture Box</p>
<p>Picture1.Picture = LoadPicture (FileName)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

