If i need 2 send an Object that allready exist like Image .....

Hi Folks ,
i need an Advise to my problems.
My problems is like that
I need 2 send an Object a lot of times throw the Soket
for this i need packing my Objects and send them 1 after 1
i will try say more clearly i need 2 send a lot of Frames (Image Capture)
Like a Movie but not Movie ;P
This Images Captures of my screen(like printscreen)
is an Object of BufferImage bi
i have a lot Objects of BufferImage bcuz alws my screen changing every move i do with mouse and enter 2 new folder i get new printscreen
i capture it so that i need Send throw the soket a lot of Objects
from BufferImage and as u know Guys
BufferImage is Java Class
import java.awt.image.BufferedImage;
so my questionsis :
1) What is the best way 2 send a lot of BufferImage Objects ?
2) i need use Serialization for that ( this is the short way and remember i want send Objects not Files)?
3) Shold i i save every imageCapture 2 File and send the file?
Then i will need 2 send a lot of Files or 1 File that alws i will change and he will contin the Newest Screen Capture?
4) from all my qestions what is the Best way?( Best way i guss is the faster way to send the CaptureImage)
5) how can i send BufferImage Object with Serialization?
humm i guss i write 2 much question will be nice if some 1 will give any Advise or somthing that can Help .
tnx

BufferedImage is not serializable so you cant serialize it directly.
But however you can make it serializable by creatigna sub class of it which implements Serializable interface and you should also implement a custom serialization logic for that new class.
But also remember sending image as represented in java will be quite expensive since it is a uncompressed bitmap. Best approach will be using image IO to send images in JPEG (or PNG for loss less compression) format. You can construct image objects at the other end.
You dont have to store images in to files you can store them in to variables (byte arrays) before sending.
Some time I did something similer and there I also implemented something like this. Before sending the captured image date through the wire I compaired it with the previously send image (Using CRC) and I send the latest image only if it has a different checksum from the last sent. That way I avoided sending multiple images when the screen is not changing.

Similar Messages

  • HT4863 How can I increase the file size limit for outgoing mail. I need to send a file that is 50MB?

    How can I increase the file size limit for outgoing mail. I need to send a file that is 50MB?

    You can't change it, and I suspect few email providers would allow a file that big.  Consider uploading it to a service like Dropbox, then email the link allowing the recipient to download it.

  • I need to send a file that i have converted from pdf to word to my pc

    i need to send a file that i have converted from pdf to word to my pc

    Converted how?  If using ExportPDF, then you should be able to download it from acrobat.com by using your Adobe ID.

  • I need an iPad flash player that will work like an adobe flash player!!,,,,,Please

    I need an iPad flash player that will work like an adobe flash player!!,,,,,Please

    rbrylawski wrote:
    Again, you clearly don't know much of what you are espousing here.  Click this link which was updated today and tell me where you can validate your claim that apple owns 65% of the mobile market.  I'm sure they wish they did, but they clearly don't.
    http://www.bgr.com/2012/04/04/android-and-ios-account-for-over-80-of-the-u-s-sma rtphone-market/
    Flash Support (all versions)
    95.57%
    http://www.statowl.com/flash.php
    OS Platform Statistics
    2012
    Win7
    Vista
    Win2003
    WinXP
    Linux
    Mac
    Mobile
    February
    48.7%
    4.5%
    0.7%
    30.0%
    5.0%
    9.1%
    1.3%
    January
    47.1%
    4.7%
    0.7%
    31.4%
    4.9%
    9.0%
    1.3%
    http://www.w3schools.com/browsers/browsers_os.asp
    Mobile Devices Statistics
    2012
    Total
    iPhone
    iPad
    iPod
    Android
    Others
    February
    1.27 %
    0.22 %
    0.45 %
    0.04 %
    0.39 %
    0.17 %
    January
    1.25 %
    0.22 %
    0.44 %
    0.04 %
    0.38 %
    0.17 %
    http://www.w3schools.com/browsers/browsers_mobile.asp
    1.3% is mobile.
    67% of that is IOS
    Around 0.75% of all internet traffic belongs to IOS.
    (I'll trust the world wide web consortium for my numbers over some "news" articles)

  • Import Command - Option to Delete objects That Already Exist?

    hi experts,
    This is 10g on Windows.
    I'm importing a specific owners objects into my 10g database. most of the tables, etc already exist. Will I have to drop the objects before importing - OR - can I use a switch/option in the import command to auto. drop anything that already exists?
    Have reviewed the command in a book I have and can't find anything that auto drops.
    Thanks, John

    impdp won't read exp dmp files.
    All you have is imp. Imp has ignore=Y, which will make imp not to skip the entire table upon import. This effectively works as 'append'. If you don't want that (duplicate keys come to mind) you need to drop tables and/or the user yourself.
    Sybrand Bakker
    Senior Oracle DBA

  • I need to know the Object that created my Object

    help needed!!
    From inside a method of myclass, I want to call a method of the class that created myclass..
    public class BSQL{
    private Manager m;
    public void BSQL() {
    m = new Manager();
    public void beeep() {...}
    The other class:
    public class Manager {
    public void x{
    !!need to call beeep() from the BSQL that created me

    Try this....
    public class BSQL {
         private Manager man;
         public BSQL() {
              man = new Manager(this);
              man.doManagerStuff();
         public void doSqlStuff() {
              System.out.println("Doing stuff.");
         public static void main(String args[]) {
              BSQL b = new BSQL();
    public class Manager {
         private BSQL creator;
         public Manager(BSQL creator) {
              this.creator = creator;
         public void doManagerStuff() {
              creator.doSqlStuff();
    }

  • I am needing to send a document that can be filled in from drop down fields I have created.  After the document is filled and signed I need the form to be locked from further changes

    I am in need of help with someone being able to fill in and sign a form in Reader that I created in Adobe Acrobat XI Pro.  After that document is sign I need it to be locked from further changes.  Can someone please help

    Hi Suzette,
    Once the document is digitally signed it will not allow further changes.
    You might want to check the solution mentioned in the thread: Re: Convert editable PDF to read-only when sent in an email - JavaScript
    Regards,
    Rave

  • Need to create a function that will act like the save as browser function

    I need to create a button on a web page that will open up a save dialog box and then save the current web page as an .html file on the persons hard drive. The reason for this is because the window is a pop up that does not have the browser menu or any toolbars showing just the what we call print view. This window was used only as a print view so people can print the form out but now the powers that be want a save button as well so the people can save it to there HD. I can do this in IE using javascript but no other browser allows that so I need to create something in java. I have read about the setHeader() to download the file but I am sort of new and from what I've read it all sounds like you will be downloading a specific file and not the web page as a file. Anyone have any ideas as to how I can accomplish this? It doesn't have to be the save as dialog box just a way the person can get the current web page on their HD for viewing offline and done at the press of a button. Thanks.

    You'll be wanting to output a PDF or the like instead of a web page. That's the solution to your problem.
    Please next time consider using a line break or two when you post. Thank you for your consideration.

  • How to send an object from one application to another?

    Hi all,
    I have two applications over the same server. The first application needs to send an object to the other application.
    I try to put the object as a session attribute, but in the moment that the second application tries to get the attribute, the attribute doesn't exist.
    Does anybody now how can pass an object from the one application to the other?

    You can also use JMS

  • How to send an object thru "response" object

    I need to send an object to a servlet thru my jsp page.
    When I created an ObjectOutputStream passing response.getOutStream as parameter, I am getting an IllegalStateException. I have checked that the response object is not being used anywhere else.
    Please help me out.
    Thanks a ton

    Try this and let me know
    try {
    ObjectOutputStream p = new                          ObjectOutputStream(
         response.getOutputStream() );
    p.writeObject("what ever object");
    p.flush();
    p.close();
    }catch (Exception e) {
    e.printStackTrace();
    I use this in my code and it works perfectly. If it still does not work, send me the entire code that you have written and I shall try to look into it and see whats going wrong.
    --ramsci                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to send multiple objects from Client to Server

    Hi
    I have a simple Client - Server architecture. I am trying to send 5 objects from Client to the Server which the server would operate on.
    In the past I've used PrintWriter to pass Strings from Client to Server but now when I am dealing with multiple Objects and PrintWriter not allowing sending of Arrays or ArrayList, how can I send these from the Client to the Server? What would be a good writer to use for this purpose?
    Thanks!

    Thanks, I am looking into ObjectOutputStream but from the API it appears I can only send 1 object at a time. I need to send 5 objects per transaction and then send the next group of 5 objects for another transaction.
    Could you clarify some more on how to put these objects together as a single Object perhaps?
    Thanks

  • Need help with a workflow that will restrict resize to 720x540

    I need help constructing a workflow that will resize any image I choose to 720x540. I want this to be restrictive to this size, in other words I don't want 720x468 or etc. I have tried this too many times, will no success so now I am reaching out for help. HELP. Once I have correct resized an image as needed I want to change its format and save a copy.
    As always thanks for your reading and replying to my Post,
    Sebastian

    Hi there,
    what Image editing software do you have, if any ?
    regards
    Ric

  • Need to send object instances over the network

    I found no other way to implement a switch case to cast objects on both sides to solve my problem.
    Basically I need to send objects over a network protocol based on XML, the object is sent inside XML
    converted in base64, overall encoding of XML is utf-8.
    Let's suppose in my network there are 2 peers connected via socket.
    I have multiple instances of different types on both peers but I want to keep these instances
    synchronized. If something changes on side A, side B must receive that instance and replace
    it in the correct place (just one way, from A to B).
    When I receive such instance on B I want to cast it to it's proper instance
    of it's proper type and I am scratching my head on how could I implement this without some
    sort of unique ID table and switch case.
    If I had 1 instance per type could it be done easily?
    But I need to keep in synch many instances per type.
    Is there any dynamic casting that I can trigger based on some type/instanceID information
    I could send along the object?

    I found no other way to implement a switch case to cast objects on both sides to solve my problem.
    Basically I need to send objects over a network protocol based on XML, the object is sent inside XML
    converted in base64, overall encoding of XML is utf-8.
    Let's suppose in my network there are 2 peers connected via socket.
    I have multiple instances of different types on both peers but I want to keep these instances
    synchronized. If something changes on side A, side B must receive that instance and replace
    it in the correct place (just one way, from A to B).
    When I receive such instance on B I want to cast it to it's proper instance
    of it's proper type and I am scratching my head on how could I implement this without some
    sort of unique ID table and switch case.
    If I had 1 instance per type could it be done easily?
    But I need to keep in synch many instances per type.
    Is there any dynamic casting that I can trigger based on some type/instanceID information
    I could send along the object?

  • I use my Ipad to record clients and I need to send these recordings to my customers. I am having trouble sending them because it always says that they are too long in length. They run any where from 5 minutes to maybe 15. Can I compress these

    I use my Ipad to film my clients and need to send copies to my clients. I am having trouble sending them. When I press share, it only gives me options of sending them as a Message airdrop or Icloud. When I press Icloud nothing happens. The videos are usually 5minutes to maybe 20 minutes. I need to send them insome kind of a compressed manner so it iseasy for my clients to open and watch. Thanks

    Have you thought about uploading them to youtube? You can put things there up to 8 minutes long, and up to 15 if you get verified. You can also have them 'unlisted' which means they're not visible to anyone without the link.
    I think your issue isn't as much that the videos are too long, it's that the file size is too big. I have a 3 minute video that I shot with my iPod that's 300 megs, and most mail programs max out at 25 megs.
    There may also be options with vimeo or other video sharing programs that you can explore.

  • Need to send mail from Microsoft Exchange 2007 account(different from Gmail) on behalf of another Gmail ID. How to configure that ?

    I have a Gmail ID (e.g [email protected])
    I have a Exchange ID (e.g  [email protected])
    I need to configure exchange account (2007)  such that I can send a mail from my Exchange account but at the receiver end it looks like it was sent from  ([email protected]).
    Both the accounts are my accounts.
    I need this because I do not have access to my Gmail account from place where I access the internet and I need to send the mails from my Gmail account only.

    So you want to spoof your e-mail address.
    You can make your Exchange server send as any address you want.  Just create a different mailbox with that address as the primary (reply) address.  It has to be a different account.
    However, be aware that many systems to which you send such mail to will bounce it as suspected spam because they'll detect that your server is sending mail from Gmail but your server is not Gmail.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

Maybe you are looking for

  • Making the side buttons of the mighty mouse go back in safari

    Hi, I found out that I can assign a custom key command to menu items in safari's browse-back-action. I've also seen that these settings are stored in ~/Library/Preferences/.GlobalPreferences.plist at the NSUserKeyEquivalents dictionary. Well, is ther

  • Note cannot be saved

    Hi, I got the intention to use the notes gimmick a little bit more in the future and so I first synchronized the notes in my iPhone with my MacBook. They appear all in the local Notes inbox. Now I tried to create a new note. Whenever I click "Ready"

  • Archive Link Creation for IXOS

    HI, I have an requirement to create custom output using smartform for invoice. Convert output into PDF and create ARCHIVE LINK to store that document into IXOS server. I have finished part upto creating PDF from smartform. Can someone suggest procedu

  • WRT54GS cannot connect via wire...connects wirelessly

    I have a WRT54GS and cannot connect laptop via wire. I can connect wirelessly, but when I try hard wire no go. I have attempted to update the ethernet adapter it is up to date. I have rebooted I have put the mac address into my router. no go If I con

  • When will retailers receive their iphone 5?

    I am first on the reservation list at Walmart for an iphone 5.  I thought Apple said that retail stores would have the iphone 5 on the 21st.  It is the 22nd and Walmart still does not know when they will receive thier iphones.  I don't understand how