Skip to content

Base64 not working with long strings #530

Answered by mattjaf
Aamirusmani1552 asked this question in Q&A
Discussion options

You must be logged in to vote

Maybe its the SVG your entering.

Also use double quotes "" instead of '' single quotes when imputing it in ur function on remix

Try:

"<svg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='260px' height='244px' viewBox='0 0 260 244' enable-background='new 0 0 260 244' xml:space='preserve'><path d='M258,118v96c0,14.333-13.667,28-28,28h-84c-17.439,0-31.571-2.152-48-8c-5.073-1.806-20-8-20-8V114l66.036-77.567L150,2h12c13.294,0,22.657,10.607,22.657,23.902v7.477c0,17.065-1.028,34.115-3.078,51.057L180.906,90H230C244.333,90,258,103.667,258,118zM2,238h60V102H2V238z'/></svg>"
//SPDX-License-Identifier: MIT
pragma solidity 

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
1 reply
@Aamirusmani1552
Comment options

Comment options

You must be logged in to vote
7 replies
@Aamirusmani1552
Comment options

@Aamirusmani1552
Comment options

@Aamirusmani1552
Comment options

@mattjaf
Comment options

@PatrickAlphaC
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Aamirusmani1552
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants