Convert Rawstring to Binary
Hi All,
I have a field of type rawstring and it should be converted to binary format.
Please let me know how to convert? is there any function module available?
Thanks & Regards,
Moni
Hi, Moni
The following links may help you in this way, Please have a look,
[Mapping of the ABAP Data Types |http://help.sap.com/saphelp_nw04/helpdata/en/cf/21f2f2446011d189700000e8322d00/frameset.htm]
[Rawstring|Re: How to store Rawstring to itab & 'strlen' not working for Rawstring ?;
[XTSRING to Binary|Re: XTSRING to Binary Problem]
Kind Regards,
Faisal
Edited by: Faisal Altaf on Jan 28, 2009 10:59 AM
Similar Messages
-
Converting characters to binary
Could anyone give me an idea how to convert characters to binary, and vice verse?
It's like those hex and binary editors out there.See if this helps you out
char c = 'a';
String binaryString = Integer.toBinaryString(c);
char translatedChar =
(char)Integer.parseInt(binaryString, 2);
System.out.println(binaryString);
System.out.println(translatedChar);
Thanks. It worked. -
Hi,
I was wondering if anyone knew of a way to convert a float value (as ascii) to a binary value?
I need a program that will take in a number of floating values from a file, convert the values to binary and then write out these values in another file, 4 bytes at a time.
I know that you can convert decimals to binary with an easy function but i've searched for float to binary and came up with nothing.
any help would be really appreciated,
cheers!One of the Java's problems is that you can easily get lost in the sea of Javadocs...
java.io.DataOutputStream
writeFloat(float v)
Converts the float argument to an int using the floatToIntBits method in class Float, and then writes that int value to the underlying output stream as a 4-byte quantity, high byte first.
java.io.DataInputStream
readFloat
public float readFloat()
throws IOException
Reads four input bytes and returns a float value. It does this by first constructing an int value in exactly the manner of the readInt method, then converting this int value to a float in exactly the manner of the method Float.intBitsToFloat. This method is suitable for reading bytes written by the writeFloat method of interface DataOutput. -
How to convert image to binary format
Hi all,
We have developed an Employee search mobile web application in .net which is hosted on an exposed IP server, we need to show the employee data along with the image of the employee on mobile.
When we run this application through our desktop we are able to see the image of the employee since we are doing this through <b>intranet</b> , but when we try to access the same from any mobile device we are able to see only the data but no image, since we are doing this through <b>internet(exposed server).</b>
Please suggest some way to get this image,
is there any<b> function module in ABAP</b> which can <b>convert image to binary format</b>
so that we <b>export binary data</b> to .net applicationHei evryone!
CAn anyone pls help me on how to solve this error:
java.security.AccessControlException: access denied (java.security.SecurityPermission insertProvider.SunJCE)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkSecurityAccess(Unknown Source)
at sun.plugin.security.ActivatorSecurityManager.checkSecurityAccess(Unknown Source)
at java.security.Security.check(Unknown Source)
at java.security.Security.insertProviderAt(Unknown Source)
at java.security.Security.addProvider(Unknown Source)
at CryptoTest.processFile(SwingApplet.java:68)
at CryptoTest.<init>(SwingApplet.java:65)
at SwingApplet.init(SwingApplet.java:39)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Is it allright for a swing code to access local resources? like in my case i want my swing app to decrypt and encrypt an image file but when i tried to access the method for decrypting and encrypting i got this error message on my console. Do i have to make my code signed before i could write/read a file on my hard drive?
Any help / suggestions would be much appreciated.Thanks! -
hi all,
how to convert pdf to binary .
regards,
sheetalrefer this -
http://www.geocities.com/rmtiwari/main.html?http://www.geocities.com/rmtiwari/Resources/MySolutions/Dev/Codes/Report/Z_RMTIWARI_XSTRING_TEXT_CONVER.html -
Converting ASCII as Binary... Transposed?
Hello friends!
I am building a VI to break apart a string of characters and convert each to binary code. Please see the attached example. When verifying the input string against the output boolean array, I notice that each 8bit code is transposed from left to right when compared against any standard ASCII to Binary table. Am I understand that binary is usually read from right to left? My concern is how other systems will translate this code after it is transferred. The main question is this: Do I leave it be, or transpose it before data transfer?
Any advice or comments would be greatly appreciated!
Thanks,
Zach
Solved!
Go to Solution.
Attachments:
example_strobe_1.vi 7 KBRemember you are looking at an array. Index 0 of an array (which corresponds to bit 0 of the number) will be to the left. As long as you are just doing standard computer functions and bit manipulations, don't worry about it.
If you are doing something where you want to graphically show on the front panel to a user what the bits look like and have the 0th bit on the right, then you will need to manipulate the array so that the 0th bit will be in index 7 and the 7th bit will be in index 0, and so on. -
Hello I need some help.
I need to convert the ASCII data to Binary form. Like if i have the character 'A' and its ASCII is 65 then its binary would be 01000001.
If there is any function/method available in java to convert ascii to binary, i would be really thanful.Hello I need some help.
I need to convert the ASCII data to Binary form. Like
if i have the character 'A' and its ASCII is 65 then
its binary would be 01000001.
If there is any function/method available in java to
convert ascii to binary, i would be really thanful.
byte ascii = 65;
String binresult = "";
for(int i=0;i<8;i++) {
if(ascii%(2^i)=0) binresult += "0";
else binresult += "1";
} -
How to convert XML to Binary in OSB Message flow
Dear All,
Can you please help me in converting XML to Binary in OSB Message flow.
Please help.
Thanks,ah ok, then you have to apply a transformation from XML to some fixed length format, EDI style
probably you have 2 options: the traditional MFL
http://docs.oracle.com/cd/E13159_01/osb/docs10gr3/consolehelp/mfls.html
or the (probably) more supported nXSD with a JCA adapter
http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/nfb.htm
I will let you digest this info and then we can continue.
There are a number of threads in this forum on whether one technology is better than the other (as usual, google can assist you) -
Hi I would like to know if you can convert decimal to binary using actionscript 3.0?
Hi I would like to know if you can convert decimal to binary using actionscript 3.0?
Hi thanks for the response Ive tried to implement the code as you stated but it is not outputting please if you could check the following code and let me know where Ive gone wrong that would be much appreciated Thanks!.
miles_txt.addEventListener(KeyboardEvent.KEY_DOWN,convertKilometres);
miles_txt.restrict ="0-9";
function convertKilometres (k:KeyboardEvent):void {
var miles:Number;
var kilometres:Number;
if (k.keyCode == Keyboard.ENTER){
miles=Number(miles_txt.text);
kilometres=miles* 1.609344;
kilometres_txt.text = kilometres.toPrecision(2);
kilometreConvert_txt.addEventListener(KeyboardEvent.KEY_DOWN,convertKiloToMile);
kilometreConvert_txt.restrict = "0-9";
function convertKiloToMile(k:KeyboardEvent):void{
var kilometreConvert:Number;
var milesAnswer:Number;
if (k.keyCode==Keyboard.ENTER) {
kilometreConvert=Number(kilometreConvert_txt.text);
milesAnswer=kilometreConvert* 0.621371192;
milesAnswer_txt.text = milesAnswer.toPrecision(2);
binary_txt.addEventListener(KeyboardEvent.KEY_DOWN, checkEnterKey2);
function checkEnterKey2(e:KeyboardEvent):void{
if(binary_txt.text != '' && e.keyCode == Keyboard.ENTER){
decimal_txt.text=binaryToDecimal(binary_txt.text).toString();
function binaryToDecimal(s:String):Number{
var n:Number = 0
for(var i:int=0;i<s.length;i++){
n+=Number(s.substr(i,1))<<(s.length-1-i)
return n;
function decimalToBinary(n:Number):String{
return n.toString(2);
return_btn.addEventListener(MouseEvent.CLICK, goBackToCalculator);
function goBackToCalculator(e:Event):void
mybuttonSound.play();
gotoAndStop("Calculator");
clear_btn.addEventListener(MouseEvent.CLICK,clearField);
function clearField(e:MouseEvent):void{
mybuttonSound.play();
miles_txt.text ="";
kilometres_txt.text ="";
milesAnswer_txt.text ="";
kilometreConvert_txt.text ="";
binary_txt.text ="";
decimal_txt.text =""; -
Dear All,
Has anyone experience convert excel to binary ?
For example, I have an excel file in my PC then I would like to set it as attachment in mail using CL_DOCUMENT_BCS. Attachment in this class only have two version, as text or as hexadecimal.
In order to create hexadecimal content I need a binary format, i will use function SCMS_BINARY_TO_XSTRING.
The problem is, how to convert excel to binary format.
Thanks in advance.
Rgds,
Denycode snippet .
data: xml_tab1 type solix_tab .
call function 'GUI_UPLOAD'
exporting
filename = filename
filetype = 'BIN'
has_field_separator = ' '
header_length = 0
importing
filelength = size
tables
data_tab = xml_tab1
exceptions
others = 1.
call method document->add_attachment
exporting
i_attachment_type = 'XLS'
i_attachment_subject = atta_sub
i_att_content_hex = xml_tab1. -
In the niHSDIO pallette there is a "convert binary to WDT" but there isn't a "convert WDT to binary". Has anyone done this? Trying to save some time.
kphHi!
I am working on finding an answer/explanation for having one vs. the other. In the meantime, I found a function under Programming>>Waveform>>Digital Waveform>>Digital Conversion called Digital to Binary which converts a digital waveform or set of digital data to a binary array of unsigned integers.
Regards,
Tica
Applications Engineer
National Instruments -
anyone knows how to convert bitmap to binary? any sample code? :p
Look at http://forum.java.sun.com/thread.jsp?forum=5&thread=363462&tstart=0&trange=15
-
CONVERT RAWSTRING to SOLIX TABLE
Hello,
I want to converte RAWSTRING to SOLIX TABLE.
how can i do that?
thank you...Hi,
here an example from sending mail
it_graphics = is_job_info-xmloutput-xsfgr[].
LOOP AT it_graphics
INTO is_graphic.
CLEAR w_gr_xtxt.
LOOP AT is_graphic-content
INTO is_gr_raw.
CONCATENATE w_gr_xtxt
is_gr_raw-line
INTO w_gr_xtxt
IN BYTE MODE.
ENDLOOP.
w_gr_xtxt = w_gr_xtxt(is_graphic-length).
w_offset = 0.
w_len = 255.
CLEAR it_solix[].
WHILE w_offset < is_graphic-length.
w_diff = is_graphic-length - w_offset.
IF w_diff > w_len.
is_solix-line = w_gr_xtxt+w_offset(w_len).
ELSE.
is_solix-line = w_gr_xtxt+w_offset(w_diff).
ENDIF.
APPEND is_solix TO it_solix.
ADD w_len TO w_offset.
ENDWHILE.
Regards
Fred -
Smart forms convert to pdf binary data
Dear All,
I'm working on smart forms integrations with .net and I need to send the smart forms PDF binary data though custom rfc .
For that i'm converting smart forms otf data to pdf in and pass this data through rfc but this idata is is not wokring on .net guys when they are converting this on pdf..
so is there any need of decoded smart forms otf data before passing through or i'm missing some basic step?
Please guide me?
Rg
Anujhi,
Have a look on this wiki:
[http://wiki.sdn.sap.com/wiki/display/Snippets/SmartformoutputtoPDFformat]
And maybe this one could also interest you:
[|http://wiki.sdn.sap.com/wiki/display/Snippets/SmartformtoMailasPDF+attachment]
regards
mickael -
Pb converting plist to binary format
Hi,
I have an XML plist generated by a perl program that I would like to convert to binary plist in a shell script. So I'm using the dedicated "plutil" program from the command line.
Alas it won't convert the plist to binary, leaving it in XML format wether I try :
plutil - convert binary1 fuel.plistorplutil -convert binary1 -o fuel2.plist fuel.plist
So I try this :plutil -convert binary1 -o - fuel.plistto send the result to the STDOUT.
Bingo, the output is definitely a binary plist as it starts with the "bplist" signature and is followed by lots of non human-readable characters.
But ... when I tried this :plutil -convert binary1 -o - fuel.plist > fuel2.plistIstill get that XML file !!
I tried with different filenames like fuel.db for the output in case plutil would reserve the .plist extension to XML format. I also validated the input file with plutil.
This is driving me crazy ... There must be something, but what ?
Any help appreciated
Regards
PhilRather than 'cat' I would definitely suggest 'hexdump' as 'cat'ing a binay file to a terminal might lead to somewhat weird results. Try one of these:
%> hexdump -C fuel2.plist
%> hexdump -C fuel2.plist | less
%> hexdump -C fuel2.plist | head
Another possibility would be to test the type of the file using the 'file' utility:
%> file fuel.plist
fuel.plist: XML document text
%> file fuel2.plist
fuel2.plist: Apple binary property list
I think that's rather clear
HTH
Maybe you are looking for
-
Adobe Encore is not compatible with this version of Windows.
After spending several days swapping email with Adobe Support, (if you can call it that), regarding this message when I would open Encore in Windows 7, I was finally told this by Adobe, "this is a known bug and adobe is working closely to get this is
-
Mac OSX (10.5.6) update breaking new MacBook Pro
Hi, I purchased one of the new MacBook Pro Unibody machines and every time I have tried to update the operating system to 10.5.6 it has broken the performance of the machine. I have used the updater software as well as tried to install via the combo
-
How can I delete a email that I created that won't delete
I have created an email in Mac Mail 7.3, I decided I did not want to send it, so I trashed it. I continues to show up in DRAFTS, I have 'sent to trash', I have erase deleted items under Mailbox's I have done more that I can't remember but I haven't b
-
Don't know what happened, but every page I go to in iWeb gives me a pop-up about Helvetica is missing, and Helvetica LT will be used instead. My 'fonts' folder does show a Helvetica, though, so any idea what is going on? Thanks, John F
-
Macbook w/10.6.8 not seeing print server
So here's the problem with 2 of my macbooks with 10.6.8 on it. We recently set up a new print server and is working for all of our other laptop of same the vintage except for 2 of them. I've redone there network settings-that's fine. I've rebound the