Transferring rich text data including graphics on sockets

hi,
I am developing a cyber classroom.I have developed server and client applications and also a chat server is provided for students.
I have just started working on java so i have some problem.
Please tell me how can i transfer rich text data including graphics on sockets from server to client.The data is to be read from JTextPane.
Please solve my problem.
I shall be very thankful.
(mail me if possible at [email protected])
Anil kumar,
department of computer sciences,
university of jammu

You can use java.io.ObjectOutputStream and java.io.ObjectInputStream.
On server side you should do:
ObjectOutputStream out =
new ObjectOutputStream(serversocket.getOutputStream())
On client side you should create the input:
ObjectInputStream in = new ObjectInputStream(socket.getInputStream())
Throwgh those streams you can transfer java.lang.Object instances if your objects' classes implements interface java.io.Serializable.
I hope this post will helps you.
Jose.

Similar Messages

  • Rich text data

    I have a VARCHAR2 column which is populated in apex4.0 using a Rich Text editor. I have a stored procedure(using xml code, htp.p) to download the data to xls. But the formatting for this column like bold, italics etc., does not show up in spreadsheet. The spreadsheet shows bold etc only for the data which is defined with xml tags in the stored procedure .
    Can someone help me how to preserve formatting of the column data in the .xls file?
    Thanks,

    Hi,
    External content types are made up of fields whose types are a subset of the primitive types of .NET. For each such .NET type, a rudimentary mapping to SharePoint’s field controls exists, describing a field’s visual appearance. Fields of type string for
    instance will, on the new and edit forms, render as a single-line text field. With regular lists, using the browser interface, you can easily turn a string field into a multi-line text area or a Rich Text field, but not so with external lists. At least not
    unless your forms are InfoPath-based.
    Please take a look at these resources:
    Evaluating Business Connectivity Services in SharePoint 2010 for web service, read/write use
    Customizing the External list
    Multi line text box in External List edit form
    Reference:
    https://social.technet.microsoft.com/Forums/en-US/0fcb5a9f-8445-4a37-9e60-ac5e9e14e8f1/sharepoint-designer-external-content-type-shows-single-line-text?forum=sharepointgeneralprevious
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Rich text data type for external list

    Hi,
    I need to create an external list with one column as rich text type where they can highlight the text and all.
    How this can be done, since with external lists the column is rendered as single line of text?

    Hi,
    External content types are made up of fields whose types are a subset of the primitive types of .NET. For each such .NET type, a rudimentary mapping to SharePoint’s field controls exists, describing a field’s visual appearance. Fields of type string for
    instance will, on the new and edit forms, render as a single-line text field. With regular lists, using the browser interface, you can easily turn a string field into a multi-line text area or a Rich Text field, but not so with external lists. At least not
    unless your forms are InfoPath-based.
    Please take a look at these resources:
    Evaluating Business Connectivity Services in SharePoint 2010 for web service, read/write use
    Customizing the External list
    Multi line text box in External List edit form
    Reference:
    https://social.technet.microsoft.com/Forums/en-US/0fcb5a9f-8445-4a37-9e60-ac5e9e14e8f1/sharepoint-designer-external-content-type-shows-single-line-text?forum=sharepointgeneralprevious
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Error when tranfering the text data

    Hi all
    I am getting an error when transfering the text data thru flat files .
    It is asking " No transfer structure available for the source system ," and saying that 0langu is not assigned to source syatem.I am working on 3.5.
    pls suggest me.
    thanks in advance
    karna

    here are teh steps:
    1) craete source system in BW as say Flat_file
    2) go to inforsource --?  create inforsource --> right clik on infosource and say assign datasource
    3) select flat_file here and say YES
    4) then for flat file, trnafer structure mapping has to be done manually. so in trs struc screen ,go to datasource tab and enter your corresponding infoobject.
    5) then  go to tranfer rule tab and propose the rule.
    If it helps, please assign points. In case of doubt, please get back
    Regards
    Pankaj

  • Error when extracting the text data

    Hi all
    I am getting an error when transfering the text data thru flat files .
    It is asking " No transfer structure available for the source system ," and saying that 0langu is not assigned to source syatem.I am working on 3.5.
    pls suggest me.
    thanks in advance
    karna

    hi,
         you have to decline 0LANGU, STTXT(short text), MDTXT(medium text),
    LGTXT(long text), and respective key field(primary key) of attribute for
    text data source.  give the above five info object's in transfer structure for
    text data source and activate it.
    if helpful provide points
    regards
    harikrishna.N

  • Pass rich text string from webdynpro java into interactive form

    Hi, experts:
      I know rich text-related questions have been asked by many other forum member.
      But I still cannot figure out how to display rich text string in the interactive form.
      below code is set rich text string in my webdynpro program.
    wdContext.currentDataForPDFElement().setDescription("<html xmlns:xfa=\"http://www.xfa.org/schema/xfa-data/1.0/\" xfa:contentType=\"text/html\"><body><p>20100730 0950</p><h1><strong>test1</strong><br /></h1></body></html>");
    or
    wdContext.currentDataForPDFElement().setDescription("<p>20100730 0950</p><h1><strong>test1</strong><br /></h1>");
    Text field in the interactive form has been assign "Field Format" to "Rich Text", "Data Format" to "XHTML".
    I also check XML in the "XML source" tab of interactive form.
    <field name="Description" w="152.817mm" minH="25.2984mm" colSpan="3" access="readOnly">
      <ui>
      </ui>
      <font typeface="Myriad Pro"/>
      <bind match="dataRef" ref="$record.Description"/>
      <value>
         <exData contentType="text/html">
            <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xfa:APIVersion="2.4.5277.0"/>
         </exData>
      </value>
    </field>
    My development tool version is NWDS CE EHP1 SP4, LiveDesigner v 7.1.
    What I miss? Any hints would be very appreciated.

    What about these:
    Formatting in SO10 texts into the form
    Trouble with xhtml text in adobe forms
    Prevent HTML escaping in RichText fields
    regards Otto

  • How do I write a vi that will save graph data and text data (related to the graph) so the next time I want to view the graph data the text data is included in the read vi?

    I am new at writing vi's and hope you may be able to help. I would like to create a vi that will graph measurements taken from a daq device. I would like to include text data that a user can choose from (example: machine number, test circuit, load cell type) that will stay with the graph so when the graph is viewed at a later time the text data (explaining parts of the graph) will display with the graph data. I have included a vi I am using to capture and display a force value. Any help would be greatly appreicated.
    Attachments:
    force.vi ‏500 KB

    What you want is a DATALOG file:
    When you save a file, use the BUNDLE function to bundle your machine number, test circuit, whatever (include a few spare fields), plus your graph data. Get the graph data from the source, or use a local variable of the graph itself.
    Wire the bundle output to the DATALOG TYPE of a NEW FILE function. (I presume you'll use a FILE DIALOG set to SAVE FILE to choose a file path).
    Write the same bundle output to the DATA input of a WRITE FILE function.
    Use a CLOSE FILE function to (ahem) close the file.
    When you want to read a file, use a FILE DIALOG set to EXISTING FILE (or some other means) to specify what file to read. Wire the same cluster type to the DATALOG TYPE of the FILE DIALOG, so that it will only
    offer files of the correct type.
    When you have a file path chosen, wire the bundle to the DATALOG TYPE input of a FILE OPEN operation.
    Use a FILE READ to read a single cluster - the output of FILE READ will be a cluster of the right type.
    Use a CLOSE FILE function to....
    Out of the FILE READ function, you can UNBUNDLE BY NAME the data and send to the graph and the other fields, or, if you're clever, you can use a cluster on the screen, and not unbundle it. That's harder though, since you probably want the text fields to be controls (inputs) and the graph to be an indicator (output).
    Hope that helps.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • I have an Iphone 4S and I would like to print my text messages, including the thread and the Imessage date and time stamps.  How would I do this?

    I have an Iphone 4S and I would like to print my text messages, including the thread and the Imessage date and time stamps.  How would I do this?

    settings - message - imessage - OFF

  • Graphics don't display in Rich Text

    I'm in the process of migrating from MS Entourage to Mail. For a long time I've been placing screenshots in context within my text and it's worked well for all receivers. Yet now my recipients tell me the graphics are no longer in place, yet they look fine when I'm sending. I've tried by gifs and tiffs; neither works.
    Mail 2.1.3 (753.1). What am I missing?
    Kind regards,

    Mulder asked: What exactly are your recipients seeing, if not the images? Are you actually sending Rich Text email, or is it Plain Text with images attached? More details.
    I'm discussing a software coding problem with a colleague. I enter some text, drag in a screenshot, centre it. Continue with more text, drag in another screenshot. Make some text bold. And so forth. Clearly I'm in Rich Text, and the behaviour is very similar to HTML mode in Entourage.
    I send the eMail. My colleague tells me the text arrives with graphic attachments out of context, separated from the text. He sends me these remarks:
    "I tried to look at your screen shots, but none of my software (preview, photoshop, safari) will open them . The name says 'gif' but it says they are in 'tiff' format."
    I then convert the graphics to TIFF format, place them in context and resend the eMail. He tells me he again gets the same result, plain text files with separated attachments.
    This is most counter intuitive and frustrating.
    Kind regards,

  • Including Graphics text into an application

    I tried to create a Graphics object to add to my application; However I recieved an error saying I can not create a Graphics interface.
    Is there any way to create a Graphics object, such as Graphics text, and include in an application, not an applet.

    lapiubellalucia wrote:
    You can, try Phone View on www.ecamm.com.
    That's a great program but the OP said they do not want to save to a computer.

  • Incoming mail won't wont display rich text or graphics

    . Before updating my Intel iMac to Leopard, none of my incoming mail displayed the text or graphic that it was used to compose the mail i.e everything is in plain text . I took the computer to local Apple store and paid for 2 hours of the tech's time and he could not find the source of the problem. After upgrading to Leopard, it did improve a bit with some mail displaying the graphics and rich text but now it is happening again.
    I have been into Mail preferences and ticked the box "display remote images in HTML messages " . There is nothing in troubleshooting to help and it is getting annoying. I also have a 13" Macbook but it does not have the same problem as the rich text and graphics come through as sent. Hope someone can help.

    try this link
    http://support.apple.com/kb/TS2537

  • Print PDF rich text editor using BI Publisher

    Hi !
    I have a CLOB field from database, and I store data using a rich text editor, like a MS Word system, here as you know, I can write words in bold format, use differents kind of colors, etc... and use all formatted text that the editor allow me. I haven't problems once save this data into table and restore again, I can see all this data formatted , and I don't loose any property of this formatted text.
    The problem is when I want print this information in the same way that I can see in the rich text editor. I use BI Publisher for generate a PDF, when I send this field for print a PDF, the PDF that BI publisher generate, print only text, prints all characters including generating that text is formatted, for example, if the field is written in bold print "<b>hello</b>" in the PDF generated by BI Publisher see "< b. > hello < / b>".
    Please which is the way for print the same as is displayed in the rich text editor?
    Thanks in advance.
    Edited by: Almogaver on 07-mar-2011 14:35
    Edited by: Almogaver on 07-mar-2011 14:35
    Edited by: Almogaver on 07-mar-2011 14:36
    Edited by: Almogaver on 07-mar-2011 14:37

    Bump Again. I understand how to remove the HTML tags, thats not a problem. The problem is getting the report to print the data from a Rich Text Field stored in a CLOB or NCLOB as formatted text. Is there a "Master Style Template" or "Master Rich Text Field Subtemplate"?
    Richard

  • Adding custom buttons to the Rich Text Editor in CQ

    Hi,
    I have added custom buttons to the rich text editor in order to allow our editors to add specific content, such as popovers, custom videos and other data necessary data.
    I have successfully modifed the Rich Text editor so, that it includes the custom buttons in the actions panel.
    I have also managed to make the buttons work and include the data where necessary, when user highlights the text and clicks on a certain button.
    The last bit I am struggling with, is the visual feedback we give to the users when this text has associated action with it.
    E.g. when we select this text and make it bold when we click on the word B the button B becomes highlighted in the actions panel, later when we continue typing our text and click again on "bold" the letter B becomes highlighted again.
    Is there any button related callback/method I could overwrite to add this functionality and make my button highlighted ?
    Thanks,
    Puzanovs

    After lot's of thinking found a solution....
    Essentially the first step is to extend the CQ.form.rte.plugins.Plugin in your custom button.
    Then during the UI initialisation we create our "custom"
    var pressButton = new ui.TbElement("press-button", this, true,this.getTooltip("press-button")); // Essential extend of the button
    setInterval(function() {
                     if(window.jQuery) {
                         window.jQuery(document).ready(function () {
                             window.jQuery(".x-edit-glossary-insert").css({width:45,"background-image":"none"}); // Ignore the background
                             window.jQuery(".x-edit-glossary-insert").text("Press Button"); // Set the name
                            $(document).on({
                                mouseenter: function(){
                                  window.jQuery(".x-edit-glossary-insert").html("<b>Press Button</b>"); // Set the name bold                        
                                mouseleave: function(){                       
                               window.jQuery(".x-edit-glossary-insert").html("Press Button"); // Set the name normal
                             }}, '.press-button');
                 }, 100);
    tbGenerator.addElement("press-button", plg.Plugin.SORT_LISTS, pressButton, 10); // element is inserted
    Every time the element is inserted I add the following html
    <span class="press-button">Test peter</span>
    Now, every time in the editor, the content editor mouse overs the custom button it is higlighted in the RTE))

  • Using Rich Text Formatting Tools for Email Message Text Box in  Webdynpro.

    Hi All,
    I would like to know whether WebDynpro provides a feature of including the Rich Text Formatting Tools (like Font, FontSize, Spell check .....) inside a Text Box.
    I need to allow the user to format/indent text inside the Email message box, before sending the Email.
    Is ABAP/Java Webdynpro providing us the above feature currently?
    Thanks for your time.
    Regards,
    Madhavi.

    Hi Armin,
    Thanks for your quick reply. Are there any release dates for when NWDS 7.1 be available?
    Thanks,
    Madhavi

  • Rich Internet / Data driven Web App 's  -  Which sdk and Plugins Please???

    Hi, I am starting Bournemouth University in September and will be learning java, I have wanted to build rich internet applications for years and am really excited!!
    I would like help understanding all the different products and plugins relevant to building rich internet data driven web applications so I can install them all to my system and then follow all the online videos and tutorials.
    I have knowledge of html, css, some sql, some flash and can use photoshop and fireworks.
    So far, I love the look of the net beans console and the first thing I want to find out is how to make the screens/panels/components unique from a graphical point of view; like you can in adobe flash or Flex. I tried to install java FX but had errors (?64 bit system related)
    Also would like to know if anyone else new has the same goal as me so we can set up a group or a web site dedicated to forming a learning path, like making a list of url's of which tutorials to do in which order to best learn the basics before connecting to databases and then learning mvc frameworks for enterprise level multi user applications.
    In that respect actually, is Java SE ok for my goals or should I have installed Java EE; I think I tried to install EE version first but had options in the installer I didnt understand or errors; did it a couple of weeks ago and cant remember exactly what the issue was? Can you upgrade from one java sdk to another without effecting netbeans??
    Thanks all in advance, I hope some people will help me get started and in return I will dedicate part of my web site im about to build for uni to putting all the information gathered in one place for others.
    My system is windows 7, 64bit
    I have installed Java sdk - jdk-6u25-windows-x64
    Apache Tomcat 7.0.11
    GlassFish Server open source edition 3.1
    Netbeans IDE 7.0
    MySql Server 5.5
    MySql Workbench 5.2CE
    I also have mssql installed as I started learning this from an interactive dvd, but am assuming Oracle is the db of choice now oracle bought java. Or mySql which i installed but have never used before.
    Edited by: user13715216 on 16-Jun-2011 07:02

    First of all, stop treating this like its an Adobe product. There are no plugins okay? You have entered a very different world of development right now, one you may find you don't even like. But lets not be hasty.
    Secondly, remove everything you have installed right now.
    Okay, now you're ready to start. Now Install the Java 6 JDK AND NOTHING ELSE. It has no executable to start any fancy program, just a bunch of command line tools with which you are going to enter the wonderful and difficult world of Java programming. Pick a favorite text editor (preferably one that has syntax highlighting for Java sources) and get going. I suggest you start here:
    http://download.oracle.com/javase/tutorial/
    This will not tell you how to build web applications; this will tell you how to create Java programs using the tools that are part of the JDK. You should not be even thinking about doing any web development at all until you are intimately familiar with the language, the tools, the standard API and programming in general. That may take as little as three months, probably more given your limited experience in the realm of application programming.
    Only once you have found your way should you make an attempt to install Netbeans again and start to learn how to use that to make your life a little easier. Before Netbeans can help you help yourself, you really have to know what you are doing.
    I wish you good luck. Its good that you are excited, but I hope that excitement has not been built on top of bad assumptions and woefully inappropriate expectations. Programming is hard, application development is even harder.

Maybe you are looking for

  • How to send message to Queue using JMS

    Hai Friends, I have written one program, which sends one seriablizable object to the queue. At queuesender.send(objectmessage) statement i am getting the following exception, but message is going to queue. The next statement is not executing. Next st

  • Error "Account not found" in Catalog

    Hi All! I have a problem with the catalog of OBI EE. When connecting to multiple users showed the error "Account not found". I've located the "Catalog Manager" accounts whose permits were <delete Account>. I deleted those accounts and have been fully

  • How to hide the Group Tree in WPF viewer

    I am trying to hide the GroupTree when I run a report, I would like to be able to turn this feature on for a few reports, however; I will normally like to hide the groups. Your help will be highly appreciated

  • Problem while installing the orion application server

    Hi Thanks for help in advance. I downloaded orion application server 1.5.3 .I followed the installation guide to install the server.When i typed java -jar orion.jar -install in command prompt ,i got following error . A nonfatal internal JIT (3.10.107

  • New buyer of my reset ipod touch 5 says he cannot

    Person who bought my ipod touch 5 that I RESET says that whenhe tries to put in his apple id, it says that id not associated withthis ipod. Put in id that IPOD was SET UP with. ? If it was reset why would it need that? I also removed it from my devic