[英]How can I escape a period/decimal inside URL Visual Studio Basic .NET VB
I am using an Amazon image URL that is this: http://ecx.images-amazon.com/images/I/61pztRZYCKL. 我正在使用这样的Amazon图像URL: http : //ecx.images-amazon.com/images/I/61pztRZYCKL。 SL1500 .jpg
SL1500 .jpg
Notice the added period inside the file name... 请注意文件名里添加的时期...
How can I escape/encode that so that I can use this image URL in another API? 如何转义/编码,以便可以在另一个API中使用此图像URL?
I'm using Visual Basic and do not want to save the file, rename, and upload... 我正在使用Visual Basic,并且不想保存文件,重命名和上传...
What do I do? 我该怎么办? Thanks.
谢谢。
You can use a UrlEncode
method. 您可以使用
UrlEncode
方法。 A number of classes have such a method and which one you should use depends on the type of application. 许多类都具有这种方法,应使用哪种方法取决于应用程序的类型。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.