View previous topic :: View next topic |
Author |
Message |
brevtilljurgen
Joined: 05 Nov 2004 Posts: 25
|
Posted: Thu May 19, 2005 5:53 am Post subject: Sending a Picture? |
|
|
How can I send a small picture.
I have built a webserver and I want to response
when I got an IMG= with send a small picture.
I have a MMC card with Fat on it.
Is it possible to read with random and put it
in a string and just send it OR?
Somebody who has a ansver????
Regards Jörgen |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Thu May 19, 2005 3:44 pm Post subject: MMC card |
|
|
brevtilljurgen
Perhaps you should check AVR-DOS.
From Franz Jozef Vogel.
A link to his site can be found in this forum. |
|
Back to top |
|
|
Frankeman
Joined: 11 Aug 2004 Posts: 948 Location: the Netherlands
|
Posted: Thu May 19, 2005 4:26 pm Post subject: |
|
|
Hi,
Put the picture in an array and then send it, like:
Code: |
dim Pic(250) as byte
Result = TCPwrite(socket, Pic ,250)
|
I have not tested this but if it don't work send the pic byte by byte, like:
Code: |
dim Pic(250) as byte
for N = 1 to 250
Result = TCPwrite(socket, Pic(N) ,1)
next
|
Frank. |
|
Back to top |
|
|
brevtilljurgen
Joined: 05 Nov 2004 Posts: 25
|
Posted: Thu May 19, 2005 6:35 pm Post subject: |
|
|
Thank's Frankeman, I shell test it tomorrow.
Best, Jörgen. |
|
Back to top |
|
|
hacker007
Joined: 11 Apr 2004 Posts: 44 Location: Slovenia
|
Posted: Mon Sep 05, 2005 7:07 pm Post subject: |
|
|
Hi brev, did it work? How to send jpeg? _________________ www.rodic.si - Medicine, electronics - home automation system ROSA, homemade stuff, programming... |
|
Back to top |
|
|
|