Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Sending a Picture?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> Easy TCP/IP Archive
View previous topic :: View next topic  
Author Message
brevtilljurgen

Bascom Member



Joined: 05 Nov 2004
Posts: 25

PostPosted: Thu May 19, 2005 5:53 am    Post subject: Sending a Picture? Reply with quote

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
View user's profile
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Thu May 19, 2005 3:44 pm    Post subject: MMC card Reply with quote

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
View user's profile Visit poster's website
Frankeman

Bascom Member



Joined: 11 Aug 2004
Posts: 948
Location: the Netherlands

netherlands.gif
PostPosted: Thu May 19, 2005 4:26 pm    Post subject: Reply with quote

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
View user's profile
brevtilljurgen

Bascom Member



Joined: 05 Nov 2004
Posts: 25

PostPosted: Thu May 19, 2005 6:35 pm    Post subject: Reply with quote

Thank's Frankeman, I shell test it tomorrow.
Best, Jörgen.
Back to top
View user's profile
hacker007

Bascom Member



Joined: 11 Apr 2004
Posts: 44
Location: Slovenia

slovenia.gif
PostPosted: Mon Sep 05, 2005 7:07 pm    Post subject: Reply with quote

Hi brev, did it work? How to send jpeg?
_________________
www.rodic.si - Medicine, electronics - home automation system ROSA, homemade stuff, programming...
Back to top
View user's profile Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> Easy TCP/IP Archive All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum