×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    11

    Printing mistake

    Plz some one help argently

    I develope MIDlet that connect to bluetooth printer and print some character that is fine,
    But when i want to print character in UTF the response is unpredictable.
    so i convert this character to png image and want to print this png image but i open it as byte array
    and when i send this byte array to the printer it print the header of the PNG and the body and ...Like:

    PNG
    IHDR 3+.....

    please can some one tell me where is the mistake plz any tip
    thanks for you

    mohammed.alrefaii@hotmail.com

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: Printing mistake

    Try to print the characters in "ISO-8859-1" format on the printer it should work, it is better supported the UTF.


    thanks,
    ~Amitabh
    Visit My Website

  3. #3
    Registered User
    Join Date
    Jul 2009
    Posts
    11

    Re: Printing mistake

    Thanks for your reply
    that's my code how can i write ISO instead of UTF
    Code:
     m_StrmConn = (StreamConnection) Connector.open(m_strUrl);
    
     m_Output = m_StrmConn.openOutputStream();
     m_Input = m_StrmConn.openInputStream();
    
     ByteArrayOutputStream baos = new ByteArrayOutputStream();
    
     m_Output.write(tempImage.)
    
     m_Output.write(outputByteArray);
     java.io.DataOutputStream dos = new DataOutputStream(m_Output);
     java.io.PrintStream ps = new PrintStream(m_Output);
     dos.writeUTF("\u062A\u0633\u062C\u064A\u0644");
     dos.flush();
    
     ps.flush();
     m_Output.flush();
     m_Output.write(CLIENT_RESPONSE.length());
     m_Output.write(CLIENT_RESPONSE.getBytes());

Similar Threads

  1. Mussing information on printing support on Eseries devices.
    By svdwal in forum Feedback - Nokia Developer Services & Infrastructure
    Replies: 3
    Last Post: 2008-05-16, 09:19
  2. Replies: 0
    Last Post: 2007-02-17, 08:12
  3. Printing on Canon PIXUSip90 from 9300
    By Bjarkem in forum Bluetooth Technology
    Replies: 0
    Last Post: 2005-06-03, 16:11
  4. Replies: 0
    Last Post: 2004-03-06, 16:23
  5. 9210i printing problem with hp 450 mobile printer
    By ab.propertyservices in forum Symbian
    Replies: 0
    Last Post: 2003-05-18, 16:02

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×