IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
ASP Classic
Search ASP Classic Group:

Advanced
-Collapse +Expand ASP Classic Store

Prestwood eMagazine

February Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyASP Classic Coding Board   Print This     

What's happening now! All groups!

Home Updated Posts Unanswered Posts Online Today Who's Reading What

ASP Classic Coding Topic Unanswered Threads

Discussion of Active Server Pages (Classic ASP).
 Show:
New Activity New Threads Oldest Unanswered Threads Most Active Most Read
  


1 Threads:

Add New ThreadRandom Thread

Thread 1 of 1
Thread Starter  

aka51
Display image
I am attempting to display an image that is stored in an access Database as an OLE Object, the code is as follows but when it rum it shows garbage caracters to the screen , , , <% , , 'Step 2: grab the picture from the database, Dim objConn, objRS, strSQL, strSQL = "SELECT image FROM test WHERE ID = 1 ;", , Set objConn = Server.CreateObject("ADODB.Connection"), objConn.Open "DSN=budget_demo", , Set objRS = Server.CreateObject("ADODB.Recordset"), objRS.Open strSQL, objConn , , %>, , , , <% , 'Step 3: Set the ContentType to image/jpg, Response.ContentType = "image/JPEG", , , 'Step 4: Use Response.BinaryWrite to output the image, Response.BinaryWrite objRS("Image"), , //Response.BinaryWrite objRS("image"), %>, , , , <%, 'Clean up..., objRS.Close, Set objRS = Nothing, , objConn.Close, Set objConn = Nothing, %>
22 years ago
Nothing New Since Your Last Visit
3072
Hits

New Thread
Sales Website: www.prestwood.com Or visit our legacy sales site: 
legacy.prestwood.com


©1995-2025 Prestwood IT Solutions.   [Security & Privacy]