Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Jpg or Gif into a varient.

Status
Not open for further replies.

JohnStep

Programmer
Apr 19, 2000
190
0
0
US
Does anyone know a way to get a GIF or JPG into a Varient? I have tried the:<br><br>&nbsp;Dim pic as varient<br><br>&nbsp;open &quot;c:\picture.jpg&quot; as binary #1<br>&nbsp;<br>&nbsp;while not eof(1) then<br>&nbsp;Get #1, , pic<br>&nbsp;<br>&nbsp;Wend<br><br>&nbsp;Close #1<br>&nbsp;<br>&nbsp;I keep getting errors. Do I need to arrey the pic Varient, But that cannot be done!<br>&nbsp;&nbsp;Any suggestions&nbsp;&nbsp;John Stephens
 
What is your FINAL goal here with this .jpg or .gif?<br><br> <p>DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br> Ask me how Bar-codes can help you be more productive.
 
I am not sure if it can be done. But my final goal was then to convert thevarient into unicode and then semd it over the winsock as a UDT. I am writing a client / Server that has the ability to send gifs and jpg's over winsock. Thus far all the data I send is in the form of UDT's. So if I can keep this with the gif as well I would like to. If not i'll have to send it other means.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;John Stephens&nbsp;&nbsp;
 
why not just use ftp? <p>nick bulka<br><a href=mailto:nick@bulka.com>nick@bulka.com</a><br><a href= > </a><br>
 
dim PicHolder as Picture<br><br>Picholder = loadpicture(&quot;GraphicFileName.jpg or gif&quot;)<br><br>The picture object has height and width properties.<br>'when u load it into ur picturebox or image box u may need 2 use<br>scalex or scaley properties to convert the size from himetrics mode to another mode. Let me know if u have a problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top