# Image Transfer through FTP

**URL:** <https://forum.sierrawireless.com/t/image-transfer-through-ftp/3938>\
**Category:** Open AT\
**Created:** [December 4, 2009, 12:15pm UTC](https://forum.sierrawireless.com/t/image-transfer-through-ftp/3938 "2009-12-04T12:15:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aravind](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@aravind](https://forum.sierrawireless.com/u/aravind)\
**Post date:** [December 4, 2009, 12:15pm UTC](https://forum.sierrawireless.com/t/image-transfer-through-ftp/3938/1 "2009-12-04T12:15:06Z")

</div>

Hi,

I have connected Wavecom (Q4 New series ) modem and camera module to processor,  
I need to send the Image captured by the camera to FTP server.  
The image is stored in Flash memory as JPG format,  
I do the following procedure to send textfile thro FTP  
I will send below AT commands to the wavecom modem from the processor,

```auto
at+wipcfg=1
at+wipbr=1,6     
at+wipbr=2,6,11,"APN"   
at+wipbr=2,6,0,""   
at+wipbr=2,6,1,""   
at+wipbr=4,6,0   
at+wipcreate=4,1,"IP",21,"username","pw"
OK
at+wipfile=4,1,2,"./my.txt"
CONNECT
//open the text file
//send line by line
+++
```

But i dont know how to transfer an image file ❗ ,  
I can send the hex values of JPG image as a text file to server 💡 ,  
In that case file size will be very big ❗ ,

Is it possible to transfer an Image(jpg/bmp) using wavecom Q24 series modem ❓  
It will be helpful if some one suggest a solution to this issue,

Thanks in advance ,  
Arvin

---

<div class="post-metadata">

**Author:** ![davidc](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@davidc](https://forum.sierrawireless.com/u/davidc)\
**Post date:** [December 6, 2009, 12:05am UTC](https://forum.sierrawireless.com/t/image-transfer-through-ftp/3938/2 "2009-12-06T00:05:11Z")

</div>

Hiya,

> [@aravind](#):
>
> Is it possible to transfer an Image(jpg/bmp) using wavecom Q24 series modem

Yep, You have described the way to do it - convert the image to text (using binhex or uuencode or similar) and then upload the file.

You could also try sending the file as pure binary - but you will have to escape any DLE and ETX characters in the binary data. Read the section on AT+WIPFILE in the WIP AT Commands guide for more info on how to escape these characters.

ciao, Dave

---

<div class="post-metadata">

**Author:** ![aravind](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@aravind](https://forum.sierrawireless.com/u/aravind)\
**Post date:** [December 7, 2009, 7:00am UTC](https://forum.sierrawireless.com/t/image-transfer-through-ftp/3938/3 "2009-12-07T07:00:41Z")

</div>

Thanks Dave,  
I will try solution and get back,  
Regards,  
Arvin

---

<div class="post-metadata">

**Author:** ![somac](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@somac](https://forum.sierrawireless.com/u/somac)\
**Post date:** [September 14, 2010, 5:19am UTC](https://forum.sierrawireless.com/t/image-transfer-through-ftp/3938/4 "2010-09-14T05:19:16Z")

</div>

In my case “connect” is not coming  
always error

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [September 14, 2010, 7:37am UTC](https://forum.sierrawireless.com/t/image-transfer-through-ftp/3938/5 "2010-09-14T07:37:25Z")

</div>

> [@somac](#):
>
> In my case “connect” is not coming  
> always error

So take a look at the commands shown here, and the ones you’re using, and spot what’s different!

[viewtopic.php?f=7&t=5139#p20867](https://forum.sierrawireless.com/viewtopic.php?f=7&t=5139#p20867)
