将twitter个人资料图片网址的格式更改为二进制64格式。 [英] Change the format of twitter profile image url to binary 64 format.

查看:279
本文介绍了将twitter个人资料图片网址的格式更改为二进制64格式。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在powerbi上创建了一个仪表板,但是推特配置文件图片的图像没有出现在powerbi中。



请查看我们尝试使用的内容Logic Apps.由于Twitter与Power BI的连接是使用流式数据集连接进行的,因此我们无法代表Power BI中的图像。



配置文件图像网址现在是文本类型,Power BI在建模时没有提供将类型更改为图像网址的选项。


因此我们想将字符串更改为Binary64字符串并追加  "数据:图像/ JPEG; BASE64,"作为前缀,以尝试


,如果这种方式有助于在Power BI中实现图像。



这应该在逻辑应用程序中完成。如果这是可行的,我们还想知道这个base64网址是否会直接在Power BI中显示


图像,或者仍然需要进行一些修改。

 以下是我提到的网址,以便假设它可以正常工作。

请帮助将twitter个人资料图片网址的格式更改为二进制64格式。 />



谢谢你
Parm Meegada

解决方案

Hi Parm,


要向Twitter发送带有来自Twitter的URL图像的base64,只需使用该URL上的HTTP连接器即可获得图像以base 64编码。


然后提取该基数64并发送给Power BI。


使用示例实现检查下图。 / p>


___________________________



如果这回答了你的问题,请标记i因此。如果这篇文章有用,请点击我的回复旁边的向上箭头标记投票为有帮助


we created a dashboard on powerbi but the images of twitter profile image does not show up in powerbi.

Please see what we’re trying to get done using Logic Apps.Since the Twitter connection with Power BI is made using the streaming dataset connection,
we’re not able to represent the images in the Power BI.

The profile image url is now the type of text and Power BI doesn’t give an option in modelling to change the type to image url.
Hence we would like to change the string to Binary64 string and append  "data:image/jpeg;base64," as a prefix in order to try
if this way would help in implementing the images in Power BI.

This should be done in logic apps. If this is doable, we would also like to know if this base64 url will show the
image directly in Power BI or still some modifications are required.
 Following is the url that I’ve referred in order to make the assumption that it’ll work.
Please help is in changing the format of twitter profile image url to binary 64 format.


Thanks
Parm Meegada

解决方案

Hi Parm,

To send to PowerBI a base64 with the URL image that is coming from Twitter, just use an HTTP connector on that URL and you will receive the image back encoded in base 64.

Then extract that base 64 and send to Power BI.

Check the image below with a sample implementation.



___________________________

If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply


这篇关于将twitter个人资料图片网址的格式更改为二进制64格式。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆