I have developed a way of loading files from MS Word 2000 with one click
directly into a CF website. For more info see
http://www.flymicro.com/cf/directload

If you know about VBA, or perhaps know someone (or somewhere) who could
help me then please read further. Otherwise delete!

DirectLoad works excellently with the body text, but I am having trouble
with associated images.  

My problem is a VBA one, not CF, and involves reading whole binary files
(eg .jpg or .gif) into a variable which can then be serialized and sent
to the server.

As far as I can see, (my documentation is not very enlightening in this
area) this is supposed to be the VBA code, but it doesn't work....

Dim imgbinary
  'open the file
Open "C:\mydocs\img1.jpg" For Binary As #1
  'read the file into the var imgbinary
Get #1, , imgbinary
  'load the var into the structure mystruct I created earlier, 
  'mystruct contains all the data which is serialized & 
  'sent to the server so it works OK in principle
mystruct.setprop "theimgfile", imgbinary
  'tidy up
Close #1

The error is on the Get.. line: 458, "Variable uses an automation type
not available in visual basic"

Anyone any ideas??


--
Regards;

Richard Meredith-Hardy
-------------------------------------------------------------
[EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to