MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old July 8th, 2003, 07:56 AM
iago iago is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 2 iago User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy retrieving mysql blob using ASP (vbscript)

Hi, I am accessing a mysql table which contains several field- types such as int, varchar and BLOB.

I have no trouble reading the non-binary fields using an ADODB object, but I cannot access the content of the text blobs (I see cryptical binary code instead)...

Anyone got a solution?

Thx in advance!

Reply With Quote
  #2  
Old July 8th, 2003, 08:03 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 6 m 11 sec
Reputation Power: 8
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Yes, if you simply do a normal response.write from your DB field, you will only see garbled data, as that is exactly what is being stored.

You need to "stream" the data out, and set the page "content-type". Google, or http://www.zdnet.com.au/builder/pro...20274969,00.htm
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
  #3  
Old July 8th, 2003, 08:10 AM
iago iago is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 2 iago User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
IT WORKS!!

Ideed!!

Simply using Response.BinaryWrite instead of Response.Write works great!

Thx ever so much!

Reply With Quote
  #4  
Old October 17th, 2005, 05:30 PM
jckelley jckelley is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 2 jckelley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 m 16 sec
Reputation Power: 0
retrieving mysql blob using ASP (vbscript)

i was having the same type of trouble, but have gotten around the issue (response.binarywrite did the trick) however i am now only getting a fraction of the blob to output (1.47kb of a 998kb file) any idea what may be causing the response.binarywrite to truncate the file?

Jason C. Kelley

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > retrieving mysql blob using ASP (vbscript)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway