Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Here's my code:
DataOutputStream dos;
File _file= new File("description.rtf");
byte[] bytes1 = ("\\'20").getBytes();

try {
dos = new DataOutputStream(new FileOutputStream(_file));
dos.write(bytes1);
dos.writeBytes("https://www.disney.com");
dos.write(bytes1);
// dos.writeBytes("{\\field{\\*\\fldinst HYPERLINK \"https://www.disney.com/\"}{\\fldrslt Disney}}");
dos.close();
} catch (IOException io) {
io.printStackTrace();
}

The following does not create a hyperlink, nor do any iterations of the above. What am I missing?

What I have tried:

I've tried all iterations of my code..doesn't work!
Posted
Updated 20-Mar-22 22:45pm

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900