NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Software Development Kit (SDK) and API Discussions

Python file-read-file: Help to convert output from HEX to ASCII

Ose
2,929 Views

Hi, I'm using Python api file-read-file to reade the /etc/messages but I'm getting the following error:

 

<results errno="14006" reason="Can't read more than 1MB at a time on file" status="failed"></results>

 

 

UPDATE:

 

I found out that the file-read-file API give the outcome data as HEX. Is there anyway to get the results in ASCII when using sprintf()? Is there any other way to print the results in ASCII instead of HEX?

 

Thank you, 

 

O

0 REPLIES 0
Public