Bug #17569 | ASPUpload / ASPJpge Update BLOB | ||
---|---|---|---|
Submitted: | 20 Feb 2006 10:06 | Modified: | 2 Sep 2009 8:07 |
Reporter: | Francisco Rios | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | Connector / ODBC | Severity: | S3 (Non-critical) |
Version: | 3.51 | OS: | Windows (Windows 2003 Server) |
Assigned to: | CPU Architecture: | Any |
[20 Feb 2006 10:06]
Francisco Rios
[17 Oct 2007 11:11]
Susanne Ebrecht
This bug is for MyODBC 3.51. I fixed the version number at this bug report.
[2 Sep 2009 8:07]
Tonci Grgin
Hi Francisco and thanks for your report. It is actually not a feature request and I apologize for missing it completely... I am not at liberty to review your code, for that you need support contract. It appears to me there is no bug here and here's why. o Unable to locate record: Please check MS documentation on how updates are done in ADO: http://support.microsoft.com/default.aspx?scid=kb;EN-GB;q190727&GSSNB=1: and add rs.Properties("Update Criteria").Value = 0 'adCriteriaKey o If this is not enough, try following code for insertion: Set stm = New ADODB.Stream stm.Type = StreamTypeEnum.adTypeBinary stm.Open stm.LoadFromFile (App.Path & "\testpicture.jpg") rs.Fields("picture").Value = stm.Read rs.Update stm.Close Set stm = Nothing rs.Close and for reading back, something like: rs.Open "Select * from table_name where picname='pic" & CStr(I) & "'", cx, adOpenForwardOnly, adLockOptimistic If Not rs.EOF Then Set stm = New ADODB.Stream stm.Type = StreamTypeEnum.adTypeBinary stm.Open stm.Write rs.Fields("picture").Value stm.SaveToFile App.Path & "\picture" & CStr(I) & ".jpg", adSaveCreateOverWrite End If rs.Close