Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherProgramming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 3rd, 2004, 06:34 AM
ASP_man ASP_man is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 55 ASP_man User rank is Private First Class (20 - 50 Reputation Level)ASP_man User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 9 h 23 m 14 sec
Reputation Power: 0
String to Byte Array

k, here's the problem. I get a binary-converted-to-string from another ASP and need to store it in MS Access. Since this string is too big to store as 'text' in MS Access, the only solution I came up with (No, I cannot change my DB), is to convert the string to an array of bytes and store it as an image and as an OLE data item in Access (Is this a good solution?)

With my current solutino, I have problems converting the string to byte array. The following piece of code doesn't seem to work -

Code:
rawdata = Request.Form("rawdata")
Dim arrayBytes() as Byte
arrayBytes = System.Convert.FromBase64String(rawdata)


I get the error -

Error Type:
Microsoft VBScript compilation (0x800A0401)
Expected end of statement
/E3/sign_test.asp, line 6, column 17
Dim arrayBytes() as Byte
----------------^

Any ideas??

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgramming Help > String to Byte Array


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 5 hosted by Hostway
Stay green...Green IT