.net - Communicate/Send Image To App?

Aug 12, 2010

I am writing a VB.Net application wherein I would like to be able to communicate with it from a remote computer. Specifically, I would like to be able to send (from a remote computer) both text data and also images (jpg, png, etc.) and then have the application use the sent information by displaying it to the user. How would I code the VB.Net app to be able to handle incoming data like this?

If possible I'd like to not be dependent on .Net technology on the "sending" side so I'm not sure if I would just use sockets or a web service or what.

View 2 Replies


ADVERTISEMENT

Send Image Over Tcp, Image Size?

Mar 27, 2009

I'm writing a Cleint/Host program that sends a image over tcp (from printscreen, not a file) to the host. Everything seems to work fine and the image is transmitted and displayed in a picturebox plus saved to a folder. The problem is when the printscreen is bigger than 176040 B. First the limit was 128000B but after setting the sendbuffersize and recivebuffersize to 1000kb the limit is 176040 B. Could it be a limit in the tcp protocol?

Here's the client code

Code:Imports System.NetImports System.Net.SocketsImports System.IOImports System.DrawingImports System.Drawing.Imaging
Public Class capture

[Code].....

View 3 Replies

Send An Image Over The Network?

May 1, 2009

I was wondering if there is an easy and fast way to send an image (or files in general) which is small, as in around 30KB, over the network using VB .NET. the most i was able to do at one point is to read the image (or file) as text, then send each character over the network, but it took way too much time for the file to get sent, and then translated from text to file once again on the other side. I don't know much about network programming, because i just started learning about the subject.

View 3 Replies

Send Image Over The Internet?

Jun 27, 2010

I have two programs running, a client and a server. They are connected through a socket, and a TCPListener. The server is pure VB.NET, but the server needs to take pictures of the desktop, which works, but then needs to send it to the client application.

View 3 Replies

VS 2008 - How To Send Image Via TCP

Mar 7, 2010

Im trying to send an image from the server to the client by using network stream. I have looked on google and found out that you can use memory stream and send it, but how do I use memory stream to get the image from the stream and display it on a picture box on the client side?

View 5 Replies

.net - Send And Receive A Large Image Using Tcp?

Dec 19, 2010

I need to send and receive a large image between programs running on different machines within the same network.

I've looked at using upd however ran into problems with the size of the packets and
(after breaking the image into smaller pieces to get past this problem) the number of packets needing to be processed all at once - and ultimately packet loss.

I've also thought of sending the image by storing it in a common file folder and receiving it by using file watcher as a trigger. However, this just adds further complexities in setup where common folders don't already exist.

Assuming I'm barking up the right tree looking at tcp, can someone point me to/provide an example of how to send an image file using it (vb.net would be ideal). Also, are there practical limits to tcp package sizes?

View 2 Replies

How To Send Mail With Protected Image

Feb 15, 2012

how to protect sending mail image? in visual basic

means don't allow to save image.if possible that?

View 2 Replies

Opening An Image In Vb To Send Into A Database - Asp.Net

Apr 22, 2009

I'm currently patching an asp.net program where I need to be able to send an image to an SQL Server 2005 DB. It works fine when I use the asp:fileupload control, but the trick is that when the user deletes the image, I'm supposed to replace it with an image from the server saying "empty", in code-behind. I know how to open, use and save text files in vb, but I can't find any information anywhere on how to open an image / binary file in a similar manner so that I can use it as an sql-parameter on the update query. Below is an example of how easy it is to use a file from the fileupload control.

[Code]...

View 2 Replies

Send / Receive Image Via Sockets

Feb 21, 2011

I want to send image from server to client via .net Sockets and assign it to a picturebox. but I got problem in receiving data, it's 'Server' side code:

[Code]...

View 7 Replies

Send An Image File Through COMPORT?

Sep 28, 2009

I would like to ask about sending an image file through serial port to a external embedded processor....

the way i think i want to do it is that i would like to open the image file in VB.NET as a binary file and then

1)either converting this binary file to a text file and then read the content of that text file to sent it through UART to that external processor or

2)Converting the binary file into an array and send that array through uart.[code]...

View 3 Replies

Send An Image To Imgur's Server?

Mar 14, 2010

I'm trying to send an image to Imgur's server.Everything went fine and I'm getting the URL of the image from the parser but when I'm trying to open it on the web browser, I'm not getting the image... only a "broken image" icon.I think it's a problem in the convertion to the byte array.... but I don't get it.

Dim image As Image = image.FromFile(OpenFile.FileName)
Dim ms As New MemoryStream()
' Convert Image to byte[]
image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg)

[code]......

View 1 Replies

Send An Image To Rest Interface?

May 21, 2012

I'm trying to send an image to Rest Interface but having an issue with the Transfer Encoding and Chunked properties.

The specification for the INterface is as follows:

PUT/api/upload/filename.ext
Authorization:<http Digest auth header>
Accept: text/xml

[Code].....

View 2 Replies

TCP Unexplained Error (Trying To Send An Image)

Mar 24, 2010

Although im using this simple logic the image that is being displayed on the remote machine the one that i send is not the same as you can see. In fact 90% is missing! The Image Size is 256KB JPG

View 4 Replies

VS 2010 Winsock. How To Send Image

Mar 25, 2012

I am testing an server-client application which captures a desktop's screenshot, saves it on a directory and then sends it to the server. But i am facing a problem. It sends me 0 bytes :S. Here is the client's

Dim i As Integer
Dim ReadData(2047) As Byte
Dim ReadLength As Long

[code].....

View 4 Replies

C# - How To Send Canvas Image As Email Attachment

May 24, 2012

I convert a SVG to canvas using canvg to an image and then vb.net client side I convert the image to bytearray() and saved it to a folder on my server so I can attached by email :

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
Dim path = Server.MapPath("PDFs")
Dim fileNameWithPath As String = path + DateTime.Now.ToString().Replace("/", "-").Replace(" ", "-").Replace(":", "") + ".jpeg"
Dim fs As FileStream = New FileStream(fileNameWithPath, FileMode.Create)
Dim bw As BinaryWriter = New BinaryWriter(fs)
[Code] .....

This code works fine and it send the image. Actually I don't need to save this image to my server I just wanted to send it without saving, this is what I have done so far.
Protected Sub emailSend_Click(ByVal sender As Object, ByVal e As EventArgs) Handles emailSend.Click
Dim customerChoice As String = DropDownList1.Text
Select Case customerChoice
Case "pdf"
[Code] .....

View 1 Replies

C# - Upload Image And Send Text At The Same Time?

Mar 5, 2012

I'm attempting to send an image and some text to a server at the same time.

I'm using WebRequest like the following to send text:

Dim ba As Byte() = Encoding.UTF8.GetBytes(query)
Dim wr As WebRequest = WebRequest.Create(Me.server_url)
wr.Method = "POST"

[Code]....

But I cannot figure out how to do both at the same time.

View 2 Replies

Send A Image File From Server To Client?

Apr 30, 2010

I want to send a image file from server to client?i am using this code for sending but i can't send the image....... and i also need some receiving code.

1.Public Sub SendImage(ByVal sndImg As String)
2.Try
3.Dim ns As System.Net.Sockets.NetworkStream
4.Dim client As System.Net.Sockets.TcpClient

[code].....

View 3 Replies

Embed Image And Send E-mail To Outlook Express

Jun 15, 2009

How to insert a image in message body and send it to Outlook express using SMTP?

I used this code to attach a image file, i want to Embed the images in message..

public void SendMail(string from, string to, string subject, string body)
{
string filname = "G:\Notes\Sample Project\Bday\bh.gif";

[Code]....

View 1 Replies

Making Image Uploader That Connects To Ftp And Send Them In To Public_html?

May 30, 2012

Im making image uploader that connects to my ftp and send them in to public_html.This is the

Public Class upload
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim request As System.Net.FtpWebRequest = DirectCast(System.Net.WebRequest.Create("ftp://ftp.my.details.com/public_html/photos/"), System.Net.FtpWebRequest)

[code]....

View 8 Replies

Send An Image From The Host To The Client And Vise Versa?

May 23, 2009

I'm implementing a client server from Atheist's thread about the TCP connection. I have set up a host that stores all the user details and when the user connects to the host, the specific user details will be sent to the client. One of the details include an avatar image. Since the example is sending data via text, how do I send an image from the host to the client and vise versa?

View 3 Replies

Send An Image To Remote Machine And Load It Into Picuture Box?

Sep 26, 2009

I know how to program an application to load the desktop image into the picturebox on a timer. Thats really easy.

But how would I load an image from another IP Address, i.e. another remote machine, into the picturebox on this application.[cod]e...

View 2 Replies

Send Image From Computer Connected To GSM Modem To A Mobile

Jul 29, 2009

how to use at commands in vb.net and how to send image from computer connected to GSM modem to a mobile using vb.net

View 1 Replies

VS 2008 - How To Send Email Using Smtp With Image As Attachment

Nov 19, 2009

I have been able to find out how to send an email using smtp with an image as an attachment, but the problem with this, is that, as a txt message, it comes up as something like [Attachment removed] or something. I need to be able to send my cell phone a picture message, not just an attachment. [Code]

View 4 Replies

[2008] Remote Client - Send The Image To Other Computer?

Jan 15, 2009

Well I'm start making a server and client program of chat and send image desktop. I have some questions i would like to make. 1 What is the best way to make a connection between machines?? Sockets??? 2 How can i send the image to other computer? With buffer stream?

View 1 Replies

Interface And Graphics :: Code For Copying An Image From A Form To Send It To The Printer?

Apr 20, 2009

below is my code for copying an image from a form to send it to the printer.it works but it tends to be a little blurry. is there anyway to make it sharper?

Bmp = New Bitmap(Me.ClientSize.Width, Me.ClientSize.Height)
Bmp = New Bitmap(800, 500)
Dim G As Graphics = Graphics.FromImage(Bmp)
G.CopyFromScreen(Me.PointToScreen(Me.ClientRectangle.Location), New Point(0, 0), Me.ClientSize)

View 6 Replies

Take A Screenshot = Turn It To Byte() - Send Through Tcp Connection Then Turn Back Into Image To Put In A Picture Box On Other Side?

Feb 11, 2012

My current code: Server: Imports System.IO Imports System.Text Imports System.Threading

[Code]...

View 9 Replies

How To Communicate Over Usb

May 31, 2012

I wish to communicate over usb in vb.net i realize i might need to use openfile windows api or createfile windows api but im doing a generic mouse driver which should be miles simpler to do since microsoft and usb.org already have the report descriptors available so all i want to do is just send data to the device directly using my program.

[Code]...

View 7 Replies

PHP Communicate With .net App?

Mar 15, 2010

I'm working on a little app which needs to recieve information from a script on a web server. I tried to have the vb.net app pole a php web page for a command every half of a second. This worked but, the app is streaming video and every time the app needs to pole the webpage the video stutter stops. I tried setting the pole timer to 5 seconds and still every 5 seconds the video stutters. I thought that maybe sockets would be the answer, so I looked for examples of vb.net socket servers and php socket clients. I tried implementing a solution but the php cannot seem to connect to the vb.net server. I googled around and saw that maybe php cannot communicate with a vb.net application.

View 1 Replies

Communicate Between 2 .Net Apps?

Apr 10, 2010

If I control both applications, what is the best way to communicate between 2 exe's written in VB.Net. For example, I want to drop an XML file from one app, and pick it up with the other, but I do not want poll for the file. I've heard of named pipes, but I found it was complicated. What's the most effecient way to do this?

View 4 Replies

Communicate Between Two Applications Via A LAN?

Jan 14, 2010

I'd like to know what the best way to communicate between two applications via a LAN would be? ..and would it work over multiple versions of Windows (XP, Vista, NT etc..)?

I am setup with Visual Basic Express 2008.

View 1 Replies







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