Programming :: Having Trouble Receiving Image In Android

Feb 19, 2011

I'm trying to send an image (which can vary in file size) from a python server to an android client . I'm not getting any errors and the file is being created client side however it always seems to fall short of the total file size. I have tried many different options in regards to input streams and buffer sizes but I have had no luck.

View 1 Replies


ADVERTISEMENT

General :: Trouble In Sending And Receiving Email

Nov 23, 2009

i have a problem regarding our email server. all the users can send email but they cant received mail. .when hitting send receive on outlook there were no error found. .i have already reboot the server and restarted the sendmail services but still same problem.

View 1 Replies View Related

Software :: Trouble With Kooka / No Image Or Preview Scan

Mar 25, 2009

The problem I have is with Kooka. I'm using Canon LiDE20 scanner, KDE 3.5.7 and Kooka 0.44 and Mandriva 2008. When I do a preview scan the outline of an image shows up in the preview window but no image. When I do a final scan - no image or image number (usually it's "scan-001.bmp")The interesting thing is that I have two users accouts on my machine and Kooka works just fine under another user. So, it's not Kooka software or the scanner itself. Is anything in the KDE user's account that can mess-up the Kooka?

View 7 Replies View Related

Slackware :: Image / Icon Trouble After Slackware-current Upgrade

Jan 22, 2010

I recently upgraded to slackware-current from Slackware 13 via slackroll, and have only encountered one problem. My file manager no longer thumbnails images, and icons (mostly PNG) aren't appearing no matter what GTK theme is set. Running from the command line produces no errors, and when brought up in something else (say feh /path/to/icon.png) it works perfectly. This is the only hitch I have encountered so far. The same thing happens with emoticons in Pidgin. Does anyone know of a fix?

View 5 Replies View Related

Programming :: Input/output Trouble Cause Segmentation Fault?

Jul 13, 2011

Dear advanced c/g++ programers:A program request me to enter twice inputthat program probably is tested good on visual c++ 7.1 on window xp,but my system is g++ on linux(Ubuntu10.04)

It assume
Enter some strings: a b c d
^Z

[code]....

View 1 Replies View Related

Programming :: Receiving The Entire Message Using TCP Socket?

Apr 15, 2010

I am trying to create a socket server in user space and a client in kernel space and send big messages (a little over 64kbytes) between them.

I used an kernel socket programming examplefrom this link - url for the kernel client side.

When the client in kernel side sends out a 64k message, usually, the server side in the user space will get a big part of the message, but will stuck at waiting for the recv() to return to get the rest of it. So I am chopping the packets into small pieces, 1000 bytes each to send to the server. But only some times, the packets will all arrive at the server/receiver side, and the server and assemble the whole message. Many times, the server is stuck at waiting for the last a couple of byte from the sending side. From the sending side printk log, it has already sent every thing.

I am attaching some log here, and the code at the end. Can someone give me some idea on how to force the data to arrive at the receiver side? Maybe the kernel on the receiver side is holding part of the packet so
the receiver program in the user space is blocked at recv()? I tried adding TCP_NODELAY on sockets on both sender and receiver sides, both it did not help.

I got a connection from (10.16.216.217 , 1489)
- Server side stuck on recv()-
bytes_recieved 17384
bytes_recieved 32768, total received 50152, expected 65540
- Client side is already done -
code....

View 2 Replies View Related

Programming :: Process Hangs Up Upon Receiving More Than 8 Or 10 Signals In Centos-5?

Jul 23, 2011

My program is creating 4 threads per transaction. Threads doing nothing but simply sleeping.

Now, when transaction ends, I want to wake up all the threads from sleeping. For this I am using pthread_kill() to wake up the threads using signal SIGUSR2.

Problem raises when I put more transactions(eg. 100 trans). My process gets hangup.

View 3 Replies View Related

Networking :: Socket Programming: Sending And Receiving Msgs Back And Forth

May 19, 2010

I have a server which is used by number of client Apps. Now when a client initiates a sendto request to a server it has to respond(after recvfrom) by sending a message using sendto back to client and this should be done back and forth.

What I dont understand is, does the client have to open a new port to receive packets from client? If yes, then how will server know to what port of the client(assuming server ports are well-known to clients)?

I had given up on sending messages back and forth using UDP and switched to TCP. I could send a read and write message back and forth. But the trouble comes when I have more than one client wanting to talk to server using SOCK_STREAM. The first one gets through but the second client seems to get blocked forever(but I got no error upon socket creation or upon connect with the server on the same port as the previous client)..

View 4 Replies View Related

Programming :: Receiving Wrong Data On Winsock From Unix Socket

Jan 28, 2011

currently I've got a big problem on programming with sockets. I use the winsock2 API and want to receive data from a multicast adress running on a UNIX-PC. The connection works fine and I really receive data from this group, but as it seems not the right packages. The received data is saved in a char[]. E.g. at received_msg[12] is a float value. This one I would like to read out, convert and use it in later progress the next value is y at received_msg[16]. The same Code works on a Unix PC with unix sockets but converted to winsock I've got the described problem and I have to make this code work under windows.

Here a piece of the code (received_msg[12]='3f'):

Buffer is a struct containing the two float values x and y. If I convert the char as this under windows the value of x is a huge number. The correct value is around 192, so receveid_message[12] should be 1.92. Could it be that the Unix-PC is sending data in an other way than the winsock receive it?

View 2 Replies View Related

Programming :: While Receiving Can Use Functions Like Strchr() To Differentiate These Fields For Sockets?

Apr 15, 2009

constructing a protocol where in it involves sending and receiving different files, so sending data over consists of file name, size of the file and content of the file, so while receiving can i use functions like strchr() to differentiate these fields for sockets? so to allocate memory for file to save i need to have its size.

View 3 Replies View Related

Ubuntu :: Install Android Market On Android-sdk Emulator?

May 4, 2011

I installed everything and am running android OS on Ubuntu (using androidphonedriver guide). The problem I'm having now is that I don't know how to install android market application to be able to install other apps like opera etc.).

View 1 Replies View Related

Debian Programming :: Can't Build Android App

May 29, 2014

I'm trying to setup tools for developing android apps on my Debian Wheezy (backport) system. Eclipse with android plugins is installed. Android SDK installed using android-sdk_r22.6.2-linux.tgz available from URL...My problem is I can't build the android app. The console in Eclipse tells me something (translated) like this;

Code: Select all[2014-05-30 16:36:45 - adb] Unexpected exception 'Cannot run program "/usr/lib/android-sdk-linux/platform-tools/adb": java.io.IOException: error=2, No such file or directory' while attempting to get adb version from '/usr/lib/android-sdk-linux/platform-tools/adb'

I have searched the web quite extensively but found no solution. It seems the issue may be due to I'm having a 64bit system but building the app requires some 32bit stuff.Some older posts suggest adding package by "apt-get install ia32-libs". In later posts (i.e. URL....

Code: Select alldpkg --add-architecture i386
apt-get update
apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386

However doing apt-get install libc6:i386 asks me to remove 1536 installed packages and installing just 5 new...

Some info about my system ....
Code: Select all>uname -mrv
3.14-0.bpo.1-amd64 #1 SMP Debian 3.14.4-1~bpo70+1 (2014-05-14) x86_64

View 8 Replies View Related

Programming :: First Image Will Display On The Page, And When A User Puts Their Cursor Over It, Then It Will Load Image 2?

Nov 24, 2010

I have just exported 3 png files out of gimp for a html document I'm working on right now, and they are all almost the same, except I need each to load when the user does something. So the first image will display on the page, and when a user puts their cursor over it, then it will load image 2. When they press it, it loads image 3.

View 1 Replies View Related

Programming :: Connecting A PC With Android Cellphone Through Wif-fi Network?

Jul 7, 2011

I'm a very experienced Java programmer, have a very basic knowledge about android and java networking.I need a basic idea about how to make a desktop application that connects to android cellphone through wi-fi ? What classes should I use ?

View 1 Replies View Related

Programming :: Avoid JNI In Order To Port A C/c++ STL Application To Android?

Jun 16, 2011

I wonder if it is possible to avoid JNI in order to port a c/c++ STL application to android ?Do I have an alternative for calling C/C++ (STL) code ?

View 2 Replies View Related

Debian Programming :: Booting Android Emulator Causes User Logout

Jan 15, 2014

I downloaded the ADT bundle for android development and whenever I try to boot an Android Device Emulator either from the eclipse version included in the bundle or from the command line, everything freezes for 1 minute and then a logout from my current Debian user session occurs. In other words, the Debian login screen appears again and all my previously opened applications get lost.

Not even when I run from the command line I manage to fetch any error notification.

I use:
- Debian Wheezy
- kernel 3.2.0-4-686-pae
- jdk1.7.0_09

I tried
./emulator @mydevname -no-boot-anim -show-kernel -shell
but I get the same result: the debian user session restarts

View 2 Replies View Related

Programming :: Detect A Closed Tcp Client Connection When Client Is Only Receiving Data ?

Mar 9, 2011

I am writing a TCP server in C, and the server listens to incoming client connections and accepts them. It then creates a thread to handle the client. The clients are expected to only receive data from my server and not send any data. So if I use a select() call with a recv(), I believe that the recv() will just block forever since there will not be any data coming from the client. If I use a non-blocking recv(), then this will just return a 0 which tells me nothing because the client is not expected to send any data. I am not sure if I have misunderstood some socket concepts, but I need a solution to detect when the client has disconnected so that I can close the socket and stop sending data to the client. As I understand it, simple ACKs etc are not captured by the recv(), and only data sent by the client will cause recv() to return a non-zero value, so I am not sure how to know when the client has disconnected.

View 7 Replies View Related

Programming :: How To Re-direct Image

Feb 17, 2009

How to re-direct image

View 1 Replies View Related

Programming :: Image Rescaling Using Sdl?

Mar 25, 2010

how can i do image rescaling in sdl. i m receiving the RGB image of 640*480,i have to change it to 352*288 while displaying in sdl...is there any direct api to change it.

View 1 Replies View Related

Programming :: How To Obtain Image From ZImage

Aug 6, 2010

I have obtained zImage from uImage by using this script http://buffalo.nas-central.org/wiki/...ract_an_uImage

Then I used the zlib library from www.zlib.net and the accompanying zpipe.c file to uncompress zImage but I am getting this error

zpipe: invalid or incomplete deflate data

Am I on the right path? My aim is to obtain completely uncompressed Image.

View 8 Replies View Related

Programming :: Extract Metadata From Image

Mar 13, 2009

I am trying to get the metadata out from an image file in python. I have tried using PIL but it does not give me the data I am looking for (mostly just got a bunch of hex code) and I have no idea how to use ImageMagick, the python module is poorly documented and I can't find any examples on the net.The info I need is stuff like camera model, if flash was used, focal length, exposure time, date, etc.. pretty much the same info I get when I look at the "Image" tab on properties in Nautilus on Ubuntu.

What I am doing is writing a script that will iterate through a lot of pictures and put all this metadata into MySQL. I chose python since it is simple and I am familiar with it. But I can't find a good way to get that metadata from within python.

View 2 Replies View Related

Programming :: GTK - Load Image Or Display In Window

Jan 11, 2010

I am trying to write a small gtk+-2 program to display whatever image it is given and I was wondering if anyone out there has done something similar. I am not too familiar with writing programs for gtk and its been a while since I've fiddled with C. I went over the tutorial for gtk and it seams pretty easy to get a window to display, but I do not see anything that refers to loading an image or displaying it in the window. I am wondering if this can be done purely with gtk or will I need to use some type of image library like imlib2?

View 3 Replies View Related

Programming :: Java: Referencing Image Within Package

Jan 30, 2009

I am running into a small bit of difficulty with images I want to use in a Java program, keeping them bundled with the program in a JAR file and accessing them within the package.For those who are thinking it, this is definitely not homework.In my program, I have several images I would like to use on buttons on a toolbar.I have Googled, and I found something that comes close, but it deals with fetching images from a URL - nothing that deals with local files, more specifically, local images kept inside of a JARchive.

View 3 Replies View Related

Programming :: Java: Set Background Image JFrame?

Jul 19, 2011

I am learning some Java programming, and I've run into a problem. I am trying to set a background for JFrame, so that I can put text and buttons on it. I've tried searching the internet, and the only code that I found that was a full code (I lost it, and don't remember the link) had so much other stuff, such as text and buttons, that I couldn't find the part I needed.

View 4 Replies View Related

Programming :: Javascript Image Sliding Direction?

Jun 2, 2010

im trying to learn javascript. so i choose to start out making a image slideshow banner that auto scrolls on load no special buttons. so since i had no idea were to start i found code that was free to use commercial and non commercial and ill be able to change it. heres that code:

Code:
var SLIDETIMER = 3;
var SLIDESPEED = 3;

[code]....

View 2 Replies View Related

Programming :: Pasting A Png Image On Another Through CAIRO Library?

Mar 3, 2010

I could easily paste images on each other in Python through PIL (Python Imaging Library)
Now I need to use Cairo with C++ for the above purpose.I have referred the following but couldn't ge

View 5 Replies View Related

Programming :: Load And Show Image In Web Page?

Feb 27, 2010

I did a perl/cgi script for uploading image. The script works, image is iploaded in upload directory, but the problem is: How can I to load and show image in web page?

View 12 Replies View Related

Programming :: [HTML/CSS/Javascript] Moving Background Image?

Jun 10, 2011

I am trying to set up a webpager that contains a background of the skylouds uperimposedin the center will be an image of an airplane with a transparent background.I want the sky to scroll continuously to the left behind the airplane. I am having problems with the background not being visible, not moving as expected, the airplane not being visible, and just disappointment in general.I think the background of a div will not be visible if there are no internal contents because it will be sized to zero. So I introduced another transparent image to force the size of the main div. Still no joy.Here is my code. Note that I don't have my timers set up yet, just a button to test background movement.

Code:
<!DOCTYPE html>
<html>

[code]...

View 2 Replies View Related

Programming :: Access To Multi-Partitions Disk Image

Jan 30, 2010

I have a 2GB file which is a dd image of a block device. The block device (a USB-connected flash memory) contains multiple partitions, and therein lies the problem. I want/need to access the various partitions in the image file, but need to do this without actually using a physical flash memory device. If the image was that of a single partition, I could simply mount it on a loop device, and access the filesystem as necessary. However, I can find no kind of virtual block device upon which to write/mount the image.

I've searched the net exhaustively for anything that would seem to allow me to do what I need, but without even a sniff of success. Sadly, I have seen bits of information that suggest "you can't get there from here". Even the outstanding dd tutorial by AwesomeMachine on LQ didn't help. Anyone know of a kind of virtual block device on which a multi-partition image can be written and mounted? Or any other way I can access individual partitions (with various filesystem types on each) and then re-assemble them back to a single image?

View 2 Replies View Related

Programming :: Copying A Binary Image File To The Framebuffer?

Jul 14, 2010

I'm running Linux version 2.6.33.4 on an ARM9 and can successfully copy directly into the framebuffer using the command:

Code:
cat /usr/myfile.bin >/dev/fb0

I converted myfile.bin from a 640 x 480 x 24 bmp.

What I'd like to do is to have the ability to dump .bin image files directly into the framebuffer from a C program without shelling out to a cat command.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved