Skip to content

Conversation

Antonio171003
Copy link
Contributor

Added a Data Provider to manage images (saving and reading) to adapt them to the format required for sending to the server.


def convertHexToImage(imageHex: String): String = {
// Check if the argument is a hexadecimal string"
if (!imageHex.startsWith("\\x") || (imageHex.length % 2) == 1) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not imageHex.startsWith("0x")?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All hexadecimal strings from the response have the prefix \x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants